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

Method GetEncodedValue

cpp/src/arrow/scalar.cc:799–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797} // namespace
798
799Result<std::shared_ptr<Scalar>> DictionaryScalar::GetEncodedValue() const {
800 const auto& dict_type = checked_cast<DictionaryType&>(*type);
801
802 if (!is_valid) {
803 return MakeNullScalar(dict_type.value_type());
804 }
805
806 ARROW_ASSIGN_OR_RAISE(int64_t index_value, DictionaryIndexValue(*value.index));
807 return value.dictionary->GetScalar(index_value);
808}
809
810bool DictionaryScalar::IsLogicalNull() const {
811 if (!is_valid) {

Callers 1

FormatMethod · 0.80

Calls 3

MakeNullScalarFunction · 0.85
value_typeMethod · 0.45
GetScalarMethod · 0.45

Tested by

no test coverage detected