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

Function OnRleRun

cpp/src/arrow/util/rle_encoding_test.cc:455–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453 decltype(bit_width) bit_width_;
454
455 auto OnRleRun(RleRun run) {
456 rle_decoder_ptr_->Reset(run, bit_width_);
457
458 const auto n_decoded = decoded_ptr_->size();
459 const auto n_to_decode = rle_decoder_ptr_->remaining();
460 decoded_ptr_->resize(n_decoded + n_to_decode);
461 EXPECT_EQ(rle_decoder_ptr_->GetBatch(decoded_ptr_->data() + n_decoded, n_to_decode,
462 bit_width_),
463 n_to_decode);
464 EXPECT_EQ(rle_decoder_ptr_->remaining(), 0);
465
466 return RleBitPackedParser::ControlFlow::Continue;
467 }
468
469 auto OnBitPackedRun(BitPackedRun run) {
470 bit_packed_decoder_ptr_->Reset(run, bit_width_);

Callers

nothing calls this directly

Calls 6

resizeMethod · 0.80
ResetMethod · 0.45
sizeMethod · 0.45
remainingMethod · 0.45
GetBatchMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected