iceberg-cpp
Loading...
Searching...
No Matches
Public Attributes | List of all members
iceberg::SchemaCache::NameIdMap Struct Reference

Public Attributes

std::unordered_map< std::string, int32_t, StringHash, std::equal_to<> > name_to_id
 Mapping from canonical field name to ID.
 
std::unordered_map< int32_t, std::string > id_to_name
 Mapping from field ID to canonical name.
 

Member Data Documentation

◆ id_to_name

std::unordered_map<int32_t, std::string> iceberg::SchemaCache::NameIdMap::id_to_name

Mapping from field ID to canonical name.

Note
Canonical names, but not short names are set, for example 'list.element.field' instead of 'list.field'.

◆ name_to_id

std::unordered_map<std::string, int32_t, StringHash, std::equal_to<> > iceberg::SchemaCache::NameIdMap::name_to_id

Mapping from canonical field name to ID.

Note
Short names for maps and lists are included for any name that does not conflict with a canonical name. For example, a list, 'l', of structs with field 'x' will produce short name 'l.x' in addition to canonical name 'l.element.x'.

The documentation for this struct was generated from the following file: