|
|
| ListType (SchemaField element) |
| | Construct a list of the given element. The name of the child field should be "element".
|
| |
|
| ListType (int32_t field_id, std::shared_ptr< Type > type, bool optional) |
| | Construct a list of the given element type.
|
| |
| TypeId | type_id () const override |
| | Get the type ID.
|
| |
|
const SchemaField & | element () const |
| |
| std::string | ToString () const override |
| | Get a user-readable string representation.
|
| |
| std::span< const SchemaField > | fields () const override |
| | Get a view of the child fields.
|
| |
| Result< std::optional< SchemaFieldConstRef > > | GetFieldById (int32_t field_id) const override |
| | Get a field by field ID.
|
| |
| Result< std::optional< SchemaFieldConstRef > > | GetFieldByIndex (int32_t index) const override |
| | Get a field by index.
|
| |
| Result< std::optional< SchemaFieldConstRef > > | GetFieldByName (std::string_view name, bool case_sensitive) const override |
| | Get a field by name. Return an error Status if the field name is not unique; prefer GetFieldById or GetFieldByIndex when possible.
|
| |
| virtual Result< std::optional< SchemaFieldConstRef > > | GetFieldByName (std::string_view name, bool case_sensitive) const=0 |
| | Get a field by name. Return an error Status if the field name is not unique; prefer GetFieldById or GetFieldByIndex when possible.
|
| |
|
Result< std::optional< SchemaFieldConstRef > > | GetFieldByName (std::string_view name) const |
| | Get a field by name (case-sensitive).
|
| |
| bool | is_primitive () const override |
| | Is this a primitive type (may not have child fields)?
|
| |
| bool | is_nested () const override |
| | Is this a nested type (may have child fields)?
|
| |
|
Result< std::optional< SchemaFieldConstRef > > | GetFieldByName (std::string_view name) const |
| | Get a field by name (case-sensitive).
|
| |
A data type representing a list of values.