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

Method DictionaryScalar

cpp/src/arrow/scalar.cc:766–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766DictionaryScalar::DictionaryScalar(std::shared_ptr<DataType> type)
767 : internal::PrimitiveScalarBase(std::move(type)),
768 value{MakeNullScalar(checked_cast<const DictionaryType&>(*this->type).index_type()),
769 MakeArrayOfNull(checked_cast<const DictionaryType&>(*this->type).value_type(),
770 0)
771 .ValueOrDie()} {}
772
773Result<std::shared_ptr<Scalar>> DictionaryScalar::GetEncodedValue() const {
774 const auto& dict_type = checked_cast<DictionaryType&>(*type);

Callers

nothing calls this directly

Calls 5

MakeNullScalarFunction · 0.85
MakeArrayOfNullFunction · 0.85
index_typeMethod · 0.80
ValueOrDieMethod · 0.80
value_typeMethod · 0.45

Tested by

no test coverage detected