A class containing constants and utility methods for metadata columns.
More...
#include <metadata_columns.h>
|
|
static const std::set< int32_t > & | MetadataFieldIds () |
| | Get the set of metadata field IDs.
|
| |
|
static bool | IsMetadataColumn (std::string_view name) |
| | Check if a column name is a metadata column.
|
| |
|
static bool | IsMetadataColumn (int32_t id) |
| | Check if a column ID is a metadata column.
|
| |
| static Result< const SchemaField * > | MetadataColumn (std::string_view name) |
| | Get a metadata column by name.
|
| |
|
|
static constexpr int32_t | kInt32Max = std::numeric_limits<int32_t>::max() |
| |
|
static constexpr int32_t | kFilePathColumnId = kInt32Max - 1 |
| |
| static const SchemaField | kFilePath |
| |
|
static constexpr int32_t | kFilePositionColumnId = kInt32Max - 2 |
| |
| static const SchemaField | kRowPosition |
| |
|
static constexpr int32_t | kIsDeletedColumnId = kInt32Max - 3 |
| |
| static const SchemaField | kIsDeleted |
| |
|
static constexpr int32_t | kSpecIdColumnId = kInt32Max - 4 |
| |
| static const SchemaField | kSpecId |
| |
|
static constexpr int32_t | kPartitionColumnId = kInt32Max - 5 |
| |
|
static constexpr std::string_view | kPartitionColumnName = "_partition" |
| |
| static constexpr std::string_view | kPartitionColumnDoc |
| |
|
static constexpr int32_t | kContentOffsetColumnId = kInt32Max - 6 |
| |
|
static constexpr int32_t | kContentSizeInBytesColumnId = kInt32Max - 7 |
| |
|
static constexpr int32_t | kDeleteFilePathColumnId = kInt32Max - 101 |
| |
| static const SchemaField | kDeleteFilePath |
| |
|
static constexpr int32_t | kDeleteFilePosColumnId = kInt32Max - 102 |
| |
| static const SchemaField | kDeleteFilePos |
| |
|
static constexpr int32_t | kDeleteFileRowColumnId = kInt32Max - 103 |
| |
|
static constexpr std::string_view | kDeleteFileRowFieldName = "row" |
| |
|
static constexpr std::string_view | kDeleteFileRowDoc = "Deleted row values" |
| |
|
static constexpr int32_t | kChangeTypeColumnId = kInt32Max - 104 |
| |
| static const SchemaField | kChangeType |
| |
|
static constexpr int32_t | kChangeOrdinalColumnId = kInt32Max - 105 |
| |
| static const SchemaField | kChangeOrdinal |
| |
|
static constexpr int32_t | kCommitSnapshotIdColumnId = kInt32Max - 106 |
| |
| static const SchemaField | kCommitSnapshotId |
| |
|
static constexpr int32_t | kRowIdColumnId = kInt32Max - 107 |
| |
| static const SchemaField | kRowId |
| |
|
static constexpr int32_t | kLastUpdatedSequenceNumberColumnId = kInt32Max - 108 |
| |
| static const SchemaField | kLastUpdatedSequenceNumber |
| |
A class containing constants and utility methods for metadata columns.
◆ MetadataColumn()
| Result< const SchemaField * > iceberg::MetadataColumns::MetadataColumn |
( |
std::string_view |
name | ) |
|
|
static |
Get a metadata column by name.
- Parameters
-
| name | The name of the metadata column. |
- Returns
- The metadata column, or an error if the name does not refer to a metadata column. The returned pointer is guaranteed to be valid.
◆ kChangeOrdinal
| const SchemaField iceberg::MetadataColumns::kChangeOrdinal |
|
inlinestatic |
Initial value:
kChangeOrdinalColumnId,
"_change_ordinal",
int32(),
"Change ordinal in changelog")
static SchemaField MakeOptional(int32_t field_id, std::string_view name, std::shared_ptr< Type > type, std::string_view doc={})
Construct an optional (nullable) field.
Definition schema_field.cc:38
ICEBERG_EXPORT const std::shared_ptr< IntType > & int32()
Return an IntType instance.
◆ kChangeType
| const SchemaField iceberg::MetadataColumns::kChangeType |
|
inlinestatic |
Initial value:
kChangeTypeColumnId, "_change_type", string(), "Record type in changelog")
static SchemaField MakeRequired(int32_t field_id, std::string_view name, std::shared_ptr< Type > type, std::string_view doc={})
Construct a required (non-null) field.
Definition schema_field.cc:43
◆ kCommitSnapshotId
| const SchemaField iceberg::MetadataColumns::kCommitSnapshotId |
|
inlinestatic |
Initial value:
kCommitSnapshotIdColumnId,
"_commit_snapshot_id",
int64(),
"Commit snapshot ID")
ICEBERG_EXPORT const std::shared_ptr< LongType > & int64()
Return a LongType instance.
◆ kDeleteFilePath
| const SchemaField iceberg::MetadataColumns::kDeleteFilePath |
|
inlinestatic |
Initial value:=
"Path of a file in which a deleted row is stored")
◆ kDeleteFilePos
| const SchemaField iceberg::MetadataColumns::kDeleteFilePos |
|
inlinestatic |
Initial value:=
"Ordinal position of a deleted row in the data file")
◆ kFilePath
Initial value:
kFilePathColumnId, "_file", string(), "Path of the file in which a row is stored")
◆ kIsDeleted
Initial value:
kIsDeletedColumnId, "_deleted", boolean(), "Whether the row has been deleted")
◆ kLastUpdatedSequenceNumber
| const SchemaField iceberg::MetadataColumns::kLastUpdatedSequenceNumber |
|
inlinestatic |
Initial value:
kLastUpdatedSequenceNumberColumnId,
"_last_updated_sequence_number",
int64(),
"Sequence number when the row was last updated")
◆ kPartitionColumnDoc
| constexpr std::string_view iceberg::MetadataColumns::kPartitionColumnDoc |
|
staticconstexpr |
Initial value:=
"Partition to which a row belongs to"
◆ kRowId
Initial value:=
"Implicit row ID that is automatically assigned")
◆ kRowPosition
| const SchemaField iceberg::MetadataColumns::kRowPosition |
|
inlinestatic |
Initial value:=
"Ordinal position of a row in the source data file")
◆ kSpecId
Initial value:=
"Spec ID used to track the file containing a row")
The documentation for this struct was generated from the following files: