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

Method DictDecoderImpl

cpp/src/parquet/decoder.cc:890–897  ·  view source on GitHub ↗

Initializes the dictionary with values from 'dictionary'. The data in dictionary is not guaranteed to persist in memory after this call so the dictionary decoder needs to copy the data out if necessary.

Source from the content-addressed store, hash-verified

888 // dictionary is not guaranteed to persist in memory after this call so the
889 // dictionary decoder needs to copy the data out if necessary.
890 explicit DictDecoderImpl(const ColumnDescriptor* descr,
891 MemoryPool* pool = ::arrow::default_memory_pool())
892 : TypedDecoderImpl<Type>(descr, Encoding::RLE_DICTIONARY),
893 dictionary_(AllocateBuffer(pool, 0)),
894 dictionary_length_(0),
895 byte_array_data_(AllocateBuffer(pool, 0)),
896 byte_array_offsets_(AllocateBuffer(pool, 0)),
897 indices_scratch_space_(AllocateBuffer(pool, 0)) {}
898
899 // Perform type-specific initialization
900 void SetDict(TypedDecoder<Type>* dictionary) override;

Callers

nothing calls this directly

Calls 2

default_memory_poolFunction · 0.85
AllocateBufferFunction · 0.70

Tested by

no test coverage detected