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

Method GetDictionaryView

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

Source from the content-addressed store, hash-verified

816 }
817
818 Result<std::shared_ptr<ArrayData>> GetDictionaryView(const DataType& out_type) {
819 if (in_data[in_layout_idx]->type->id() != Type::DICTIONARY) {
820 return InvalidView("Cannot get view as dictionary type");
821 }
822 const auto& dict_out_type = static_cast<const DictionaryType&>(out_type);
823 return internal::GetArrayView(in_data[in_layout_idx]->dictionary,
824 dict_out_type.value_type());
825 }
826
827 Status MakeDataView(const std::shared_ptr<Field>& out_field,
828 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