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

Method WriteDict

cpp/src/parquet/encoder.cc:651–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649
650template <typename DType>
651void DictEncoderImpl<DType>::WriteDict(uint8_t* buffer) const {
652 // For primitive types, only a memcpy
653 DCHECK_EQ(static_cast<size_t>(dict_encoded_size_), sizeof(T) * memo_table_.size());
654 memo_table_.CopyValues(0 /* start_pos */, reinterpret_cast<T*>(buffer));
655}
656
657// ByteArray and FLBA already have the dictionary encoded in their data heaps
658template <>

Callers 6

CheckRoundtripMethod · 0.45
GetDictDecoderFunction · 0.45
SetupEncoderDecoderMethod · 0.45
DecodeDictFunction · 0.45
DoEncodeMethod · 0.45
WriteDictionaryPageMethod · 0.45

Calls 5

sizeMethod · 0.45
CopyValuesMethod · 0.45
VisitValuesMethod · 0.45
lengthMethod · 0.45
dataMethod · 0.45

Tested by 3

CheckRoundtripMethod · 0.36
GetDictDecoderFunction · 0.36
SetupEncoderDecoderMethod · 0.36