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

Method GetDictionary

cpp/src/arrow/ipc/feather.cc:318–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 std::shared_ptr<Schema> schema() const override { return schema_; }
317
318 Status GetDictionary(int field_index, std::shared_ptr<ArrayData>* out) {
319 const fbs::Column* col_meta = metadata_->columns()->Get(field_index);
320 auto dict_meta = col_meta->metadata_as<fbs::CategoryMetadata>();
321 const auto& dict_type =
322 checked_cast<const DictionaryType&>(*schema_->field(field_index)->type());
323
324 return LoadValues(dict_type.value_type(), dict_meta->levels(),
325 fbs::TypeMetadata::TypeMetadata_NONE, nullptr, out);
326 }
327
328 Status GetColumn(int field_index, std::shared_ptr<ChunkedArray>* out) {
329 const fbs::Column* col_meta = metadata_->columns()->Get(field_index);

Callers

nothing calls this directly

Calls 5

columnsMethod · 0.80
GetMethod · 0.45
typeMethod · 0.45
fieldMethod · 0.45
value_typeMethod · 0.45

Tested by

no test coverage detected