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

Function MakeTypedEncoder

cpp/src/parquet/encoding.h:428–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426
427template <typename DType>
428std::unique_ptr<typename EncodingTraits<DType>::Encoder> MakeTypedEncoder(
429 Encoding::type encoding, bool use_dictionary = false,
430 const ColumnDescriptor* descr = NULLPTR,
431 ::arrow::MemoryPool* pool = ::arrow::default_memory_pool()) {
432 using OutType = typename EncodingTraits<DType>::Encoder;
433 std::unique_ptr<Encoder> base =
434 MakeEncoder(DType::type_num, encoding, use_dictionary, descr, pool);
435 return std::unique_ptr<OutType>(dynamic_cast<OutType*>(base.release()));
436}
437
438PARQUET_EXPORT
439std::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