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

Method Decode

cpp/src/parquet/decoder.cc:521–529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519
520template <typename DType>
521int PlainDecoder<DType>::Decode(T* buffer, int max_values) {
522 max_values = std::min(max_values, this->num_values_);
523 int bytes_consumed =
524 DecodePlain<T>(this->data_, this->len_, max_values, this->type_length_, buffer);
525 this->data_ += bytes_consumed;
526 this->len_ -= bytes_consumed;
527 this->num_values_ -= max_values;
528 return max_values;
529}
530
531// PLAIN decoder implementation for BOOLEAN
532

Callers 15

VerifyDecodingLevelsFunction · 0.45
DecodeLevelsFunction · 0.45
DecodeSpacedMethod · 0.45
DecodeDictMethod · 0.45
DecodeLengthsMethod · 0.45
SetDataMethod · 0.45
GetInternalMethod · 0.45
DecodeFunction · 0.45
Decode<BooleanType>Function · 0.45
BM_RleDecodingFunction · 0.45
PlainDecodeMethod · 0.45

Calls 3

CopyBitmapFunction · 0.50
AdvanceMethod · 0.45
GetBatchMethod · 0.45

Tested by 10

VerifyDecodingLevelsFunction · 0.36
TESTFunction · 0.36
CheckRoundtripMethod · 0.36
CheckRoundtripMethod · 0.36
CheckRoundtripMethod · 0.36
CheckDecodeMethod · 0.36
CheckDecodingMethod · 0.36
CheckRoundtripMethod · 0.36
CheckRoundtripMethod · 0.36