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

Function MakeTypedEncoder

cpp/src/parquet/encoding.h:439–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437
438template <typename DType>
439std::unique_ptr<typename EncodingTraits<DType>::Encoder> MakeTypedEncoder(
440 Encoding::type encoding, bool use_dictionary = false,
441 const ColumnDescriptor* descr = NULLPTR,
442 ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) {
443 using OutType = typename EncodingTraits<DType>::Encoder;
444 std::unique_ptr<Encoder> base =
445 MakeEncoder(DType::type_num, encoding, use_dictionary, descr, pool);
446 return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release()));
447}
448
449PARQUET_EXPORT
450std::unique_ptr<Decoder> MakeDecoder(

Callers

nothing calls this directly

Calls 3

default_memory_poolFunction · 0.85
MakeEncoderFunction · 0.70
releaseMethod · 0.45

Tested by

no test coverage detected