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

Function MakeTypedDecoder

cpp/src/parquet/encoding.h:473–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471
472template <typename DType>
473std::unique_ptr<typename EncodingTraits<DType>::Decoder> MakeTypedDecoder(
474 Encoding::type encoding, const ColumnDescriptor* descr = NULLPTR,
475 ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) {
476 using OutType = typename EncodingTraits<DType>::Decoder;
477 std::unique_ptr<Decoder> base = MakeDecoder(DType::type_num, encoding, descr, pool);
478 return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release()));
479}
480
481/// Return the list of supported encodings for the given physical type
482///

Callers

nothing calls this directly

Calls 3

default_memory_poolFunction · 0.85
MakeDecoderFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected