MCPcopy Create free account
hub / github.com/apache/arrow / DefLevelsToBitmap

Function DefLevelsToBitmap

cpp/src/parquet/level_conversion.cc:122–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120} // namespace
121
122void DefLevelsToBitmap(const int16_t* def_levels, int64_t num_def_levels,
123 LevelInfo level_info, ValidityBitmapInputOutput* output) {
124 // It is simpler to rely on rep_level here until PARQUET-1899 is done and the code
125 // is deleted in a follow-up release.
126 if (level_info.rep_level > 0) {
127#if defined(ARROW_HAVE_RUNTIME_BMI2)
128 if (CpuInfo::GetInstance()->HasEfficientBmi2()) {
129 return DefLevelsToBitmapBmi2WithRepeatedParent(def_levels, num_def_levels,
130 level_info, output);
131 }
132#endif
133 standard::DefLevelsToBitmapSimd</*has_repeated_parent=*/true>(
134 def_levels, num_def_levels, level_info, output);
135 } else {
136 standard::DefLevelsToBitmapSimd</*has_repeated_parent=*/false>(
137 def_levels, num_def_levels, level_info, output);
138 }
139}
140
141uint64_t TestOnlyExtractBitsSoftware(uint64_t bitmap, uint64_t select_bitmap) {
142 return standard::ExtractBitsSoftware(bitmap, select_bitmap);

Callers 5

TESTFunction · 0.85
BuildArrayMethod · 0.85

Tested by 1

TESTFunction · 0.68