|
| static Result< MetadataFileCodecType > | FromString (std::string_view name) |
| | Returns the MetadataFileCodecType corresponding to the given string.
|
| |
| static Result< MetadataFileCodecType > | FromFileName (std::string_view file_name) |
| | Get the codec type from the table metadata file name.
|
| |
| static Result< std::string > | NameToFileExtension (std::string_view codec) |
| | Get the file extension from the codec type.
|
| |
| static std::string | TypeToFileExtension (MetadataFileCodecType codec) |
| | Get the file extension from the codec type.
|
| |
|
|
static constexpr std::string_view | kTableMetadataFileSuffix = ".metadata.json" |
| |
| static constexpr std::string_view | kCompGzipTableMetadataFileSuffix |
| |
|
static constexpr std::string_view | kGzipTableMetadataFileSuffix = ".gz.metadata.json" |
| |
|
static constexpr std::string_view | kGzipTableMetadataFileExtension = ".gz" |
| |
|
static constexpr std::string_view | kCodecTypeGzip = "GZIP" |
| |
|
static constexpr std::string_view | kCodecTypeNone = "NONE" |
| |
◆ FromFileName()
| Result< MetadataFileCodecType > iceberg::TableMetadataUtil::Codec::FromFileName |
( |
std::string_view |
file_name | ) |
|
|
static |
Get the codec type from the table metadata file name.
- Parameters
-
| file_name | The name of the table metadata file. |
- Returns
- The codec type of the table metadata file.
◆ FromString()
| Result< MetadataFileCodecType > iceberg::TableMetadataUtil::Codec::FromString |
( |
std::string_view |
name | ) |
|
|
static |
Returns the MetadataFileCodecType corresponding to the given string.
- Parameters
-
- Returns
- The MetadataFileCodecType corresponding to the given string.
◆ NameToFileExtension()
| Result< std::string > iceberg::TableMetadataUtil::Codec::NameToFileExtension |
( |
std::string_view |
codec | ) |
|
|
static |
Get the file extension from the codec type.
- Parameters
-
- Returns
- The file extension of the codec.
◆ TypeToFileExtension()
| std::string iceberg::TableMetadataUtil::Codec::TypeToFileExtension |
( |
MetadataFileCodecType |
codec | ) |
|
|
static |
Get the file extension from the codec type.
- Parameters
-
- Returns
- The file extension of the codec.
◆ kCompGzipTableMetadataFileSuffix
| constexpr std::string_view iceberg::TableMetadataUtil::Codec::kCompGzipTableMetadataFileSuffix |
|
staticconstexpr |
The documentation for this struct was generated from the following files: