A list of field mappings for child field of structs, maps, and lists.
More...
#include <name_mapping.h>
|
| std::optional< MappedFieldConstRef > | Field (int32_t id) const |
| | Get the field for a given field ID.
|
| |
| std::optional< int32_t > | Id (std::string_view name) const |
| | Get the field ID for a given field name.
|
| |
|
size_t | Size () const |
| | Get the number of field mappings.
|
| |
|
std::span< const MappedField > | fields () const |
| | Get the list of field mappings.
|
| |
A list of field mappings for child field of structs, maps, and lists.
◆ Field()
| std::optional< MappedFieldConstRef > iceberg::MappedFields::Field |
( |
int32_t |
id | ) |
const |
Get the field for a given field ID.
- Parameters
-
| [in] | id | The ID of the field. |
- Returns
- The field for the given field ID.
◆ Id()
| std::optional< int32_t > iceberg::MappedFields::Id |
( |
std::string_view |
name | ) |
const |
Get the field ID for a given field name.
- Parameters
-
| [in] | name | The name of the field. |
- Returns
- The field ID of the field.
◆ Make()
Create a new MappedFields instance.
- Parameters
-
| [in] | fields | The list of field mappings. |
- Returns
- A new MappedFields instance.
The documentation for this class was generated from the following files: