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

Function VisitSetBitRunsVoid

cpp/src/arrow/util/bit_run_reader.h:514–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512
513template <typename Visit>
514inline void VisitSetBitRunsVoid(const uint8_t* bitmap, int64_t offset, int64_t length,
515 Visit&& visit) {
516 if (bitmap == NULLPTR) {
517 // Assuming all set (as in a null bitmap)
518 visit(static_cast<int64_t>(0), static_cast<int64_t>(length));
519 return;
520 }
521 SetBitRunReader reader(bitmap, offset, length);
522 while (true) {
523 const auto run = reader.NextRun();
524 if (run.length == 0) {
525 break;
526 }
527 visit(run.position, run.length);
528 }
529}
530
531template <typename Visit>
532inline Status VisitSetBitRuns(const std::shared_ptr<Buffer>& bitmap, int64_t offset,

Callers 15

VisitValuesMethod · 0.85
SumOfListSizesFunction · 0.85
SumOfListViewSizesFunction · 0.85
ExecArrayCaseWhenFunction · 0.85
ConsumeMethod · 0.85
ExecMethod · 0.85
ConsumeMethod · 0.85
ClipValuesFunction · 0.85
ConsumeMethod · 0.85
SumArrayFunction · 0.85
pair<T, T> GetMinMaxMethod · 0.85
CountValuesFunction · 0.85

Calls 2

NextRunMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected