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

Function SetAttributes

cpp/src/arrow/adapters/orc/util.cc:957–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

955}
956
957void SetAttributes(const std::shared_ptr<arrow::Field>& field, liborc::Type* type) {
958 if (field->HasMetadata()) {
959 const auto& metadata = field->metadata();
960 for (int64_t i = 0; i < metadata->size(); i++) {
961 type->setAttribute(metadata->key(i), metadata->value(i));
962 }
963 }
964}
965
966Result<std::unique_ptr<liborc::Type>> GetOrcType(const DataType& type) {
967 Type::type kind = type.id();

Callers 1

GetOrcTypeFunction · 0.85

Calls 5

HasMetadataMethod · 0.45
metadataMethod · 0.45
sizeMethod · 0.45
keyMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected