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

Method SetupEncoderDecoder

cpp/src/parquet/encoding_test.cc:624–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622class PlainEncoding : public TestArrowBuilderDecoding {
623 public:
624 void SetupEncoderDecoder() override {
625 encoder_ = MakeTypedEncoder<ByteArrayType>(Encoding::PLAIN);
626 plain_decoder_ = MakeTypedDecoder<ByteArrayType>(Encoding::PLAIN);
627 decoder_ = plain_decoder_.get();
628 if (valid_bits_ != nullptr) {
629 ASSERT_NO_THROW(
630 encoder_->PutSpaced(input_data_.data(), num_values_, valid_bits_, 0));
631 } else {
632 ASSERT_NO_THROW(encoder_->Put(input_data_.data(), num_values_));
633 }
634 buffer_ = encoder_->FlushValues();
635 decoder_->SetData(num_values_, buffer_->data(), static_cast<int>(buffer_->size()));
636 }
637};
638
639TEST_F(PlainEncoding, CheckDecodeArrowUsingDenseBuilder) {

Callers

nothing calls this directly

Calls 7

getMethod · 0.45
PutSpacedMethod · 0.45
dataMethod · 0.45
PutMethod · 0.45
FlushValuesMethod · 0.45
SetDataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected