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

Function FieldIdMetadata

cpp/src/parquet/arrow/schema.cc:284–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282static constexpr char FIELD_ID_KEY[] = "PARQUET:field_id";
283
284std::shared_ptr<::arrow::KeyValueMetadata> FieldIdMetadata(int field_id) {
285 if (field_id >= 0) {
286 return ::arrow::key_value_metadata({FIELD_ID_KEY}, {ToChars(field_id)});
287 } else {
288 return nullptr;
289 }
290}
291
292int FieldIdFromMetadata(
293 const std::shared_ptr<const ::arrow::KeyValueMetadata>& metadata) {

Callers 6

GroupToStructFunction · 0.70
MapToSchemaFieldFunction · 0.70
ResolveListFunction · 0.70
ListToSchemaFieldFunction · 0.70
GroupToSchemaFieldFunction · 0.70
NodeToSchemaFieldFunction · 0.70

Calls 2

key_value_metadataFunction · 0.85
ToCharsFunction · 0.85

Tested by

no test coverage detected