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

Method GetDictionaryView

cpp/src/arrow/array/data.cc:813–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811 }
812
813 Result<std::shared_ptr<ArrayData>> GetDictionaryView(const DataType& out_type) {
814 if (in_data[in_layout_idx]->type->id() != Type::DICTIONARY) {
815 return InvalidView("Cannot get view as dictionary type");
816 }
817 const auto& dict_out_type = static_cast<const DictionaryType&>(out_type);
818 return internal::GetArrayView(in_data[in_layout_idx]->dictionary,
819 dict_out_type.value_type());
820 }
821
822 Status MakeDataView(const std::shared_ptr<Field>& out_field,
823 std::shared_ptr<ArrayData>* out) {

Callers

nothing calls this directly

Calls 3

GetArrayViewFunction · 0.85
idMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected