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

Method DictDecoderImpl

cpp/src/parquet/decoder.cc:871–878  ·  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

869 // dictionary is not guaranteed to persist in memory after this call so the
870 // dictionary decoder needs to copy the data out if necessary.
871 explicit DictDecoderImpl(const ColumnDescriptor* descr,
872 MemoryPool* pool = ::arrow::default_memory_pool())
873 : TypedDecoderImpl<Type>(descr, Encoding::RLE_DICTIONARY),
874 dictionary_(AllocateBuffer(pool, 0)),
875 dictionary_length_(0),
876 byte_array_data_(AllocateBuffer(pool, 0)),
877 byte_array_offsets_(AllocateBuffer(pool, 0)),
878 indices_scratch_space_(AllocateBuffer(pool, 0)) {}
879
880 // Perform type-specific initialization
881 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