iceberg-cpp
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
iceberg::TableMetadataUtil::Codec Struct Reference

Static Public Member Functions

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 Public Attributes

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"
 

Member Function Documentation

◆ 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_nameThe 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
nameThe string to parse.
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
codecThe codec name.
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
codecThe codec type.
Returns
The file extension of the codec.

Member Data Documentation

◆ kCompGzipTableMetadataFileSuffix

constexpr std::string_view iceberg::TableMetadataUtil::Codec::kCompGzipTableMetadataFileSuffix
staticconstexpr
Initial value:
=
".metadata.json.gz"

The documentation for this struct was generated from the following files: