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

Function FieldIdMetadata

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

Source from the content-addressed store, hash-verified

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