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

Function VisitSetBitRunsVoid

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

Source from the content-addressed store, hash-verified

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

Callers 15

VisitValuesMethod · 0.85
SumOfListSizesFunction · 0.85
SumOfListViewSizesFunction · 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
CopyNonNullValuesFunction · 0.85

Calls 2

NextRunMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected