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

Method SetData

cpp/src/arrow/array/array_dict.cc:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void DictionaryArray::SetData(const std::shared_ptr<ArrayData>& data) {
89 this->Array::SetData(data);
90 auto indices_data = data_->Copy();
91 indices_data->type = dict_type_->index_type();
92 indices_data->dictionary = nullptr;
93 indices_ = MakeArray(indices_data);
94}
95
96DictionaryArray::DictionaryArray(const std::shared_ptr<DataType>& type,
97 const std::shared_ptr<Array>& indices,

Callers

nothing calls this directly

Calls 3

index_typeMethod · 0.80
MakeArrayFunction · 0.70
CopyMethod · 0.45

Tested by

no test coverage detected