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

Method DecodeDict

cpp/src/parquet/decoder.cc:1003–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001 }
1002
1003 inline void DecodeDict(TypedDecoder<Type>* dictionary) {
1004 dictionary_length_ = static_cast<int32_t>(dictionary->values_left());
1005 PARQUET_THROW_NOT_OK(
1006 dictionary_->Resize(static_cast<int64_t>(dictionary_length_) * sizeof(T),
1007 /*shrink_to_fit=*/false));
1008 dictionary->Decode(dictionary_->mutable_data_as<T>(), dictionary_length_);
1009 }
1010
1011 // Only one is set.
1012 std::shared_ptr<ResizableBuffer> dictionary_;

Callers

nothing calls this directly

Calls 3

values_leftMethod · 0.80
ResizeMethod · 0.45
DecodeMethod · 0.45

Tested by

no test coverage detected