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

Function MakeTypedDecoder

cpp/src/parquet/encoding.h:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460
461template <typename DType>
462std::unique_ptr<typename EncodingTraits<DType>::Decoder> MakeTypedDecoder(
463 Encoding::type encoding, const ColumnDescriptor* descr = NULLPTR,
464 ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) {
465 using OutType = typename EncodingTraits<DType>::Decoder;
466 std::unique_ptr<Decoder> base = MakeDecoder(DType::type_num, encoding, descr, pool);
467 return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release()));
468}
469
470/// Return the list of supported encodings for the given physical type
471///

Callers

nothing calls this directly

Calls 3

default_memory_poolFunction · 0.85
MakeDecoderFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected