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

Method TypedDecoderImpl

cpp/src/parquet/decoder.cc:310–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308
309 protected:
310 TypedDecoderImpl(const ColumnDescriptor* descr, Encoding::type encoding)
311 : DecoderImpl(descr, encoding) {
312 if constexpr (std::is_same_v<DType, FLBAType>) {
313 if (descr_ == nullptr) {
314 throw ParquetException(
315 "Must pass a ColumnDescriptor when creating a Decoder for "
316 "FIXED_LEN_BYTE_ARRAY");
317 }
318 type_length_ = descr_->type_length();
319 } else if constexpr (std::is_same_v<DType, ByteArrayType>) {
320 type_length_ = -1;
321 } else {
322 type_length_ = sizeof(T);
323 }
324 }
325
326 int DecodeSpaced(T* buffer, int num_values, int null_count, const uint8_t* valid_bits,
327 int64_t valid_bits_offset) override {

Callers

nothing calls this directly

Calls 2

ParquetExceptionFunction · 0.85
type_lengthMethod · 0.80

Tested by

no test coverage detected