A type combined with a name.
More...
#include <schema_field.h>
|
| | SchemaField (int32_t field_id, std::string_view name, std::shared_ptr< Type > type, bool optional, std::string_view doc={}) |
| | Construct a field.
|
| |
|
int32_t | field_id () const |
| | Get the field ID.
|
| |
|
std::string_view | name () const |
| | Get the field name.
|
| |
|
const std::shared_ptr< Type > & | type () const |
| | Get the field type.
|
| |
|
bool | optional () const |
| | Get whether the field is optional.
|
| |
|
std::string_view | doc () const |
| | Get the field documentation.
|
| |
| std::string | ToString () const override |
| | Get a user-readable string representation.
|
| |
|
Status | Validate () const |
| |
|
SchemaField | AsRequired () const |
| |
|
SchemaField | AsOptional () const |
| |
|
|
static constexpr int32_t | kInvalidFieldId = -1 |
| |
A type combined with a name.
◆ SchemaField()
| iceberg::SchemaField::SchemaField |
( |
int32_t |
field_id, |
|
|
std::string_view |
name, |
|
|
std::shared_ptr< Type > |
type, |
|
|
bool |
optional, |
|
|
std::string_view |
doc = {} |
|
) |
| |
Construct a field.
- Parameters
-
| [in] | field_id | The field ID. |
| [in] | name | The field name. |
| [in] | type | The field type. |
| [in] | optional | Whether values of this field are required or nullable. |
| [in] | doc | Optional documentation string for the field. |
◆ ToString()
| std::string iceberg::SchemaField::ToString |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: