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

Function OnRleRun

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

Source from the content-addressed store, hash-verified

427 decltype(bit_width) bit_width_;
428
429 auto OnRleRun(RleRun run) {
430 rle_decoder_ptr_->Reset(run, bit_width_);
431
432 const auto n_decoded = decoded_ptr_->size();
433 const auto n_to_decode = rle_decoder_ptr_->remaining();
434 decoded_ptr_->resize(n_decoded + n_to_decode);
435 EXPECT_EQ(rle_decoder_ptr_->GetBatch(decoded_ptr_->data() + n_decoded, n_to_decode,
436 bit_width_),
437 n_to_decode);
438 EXPECT_EQ(rle_decoder_ptr_->remaining(), 0);
439
440 return RleBitPackedParser::ControlFlow::Continue;
441 }
442
443 auto OnBitPackedRun(BitPackedRun run) {
444 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