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

Function SetAttributes

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

Source from the content-addressed store, hash-verified

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