Configuration class for a REST Catalog.
More...
#include <catalog_properties.h>
|
|
std::unordered_map< std::string, std::string > | ExtractHeaders () const |
| | Returns HTTP headers to be added to every request.
|
| |
| Result< std::string_view > | Uri () const |
| | Get the URI of the REST catalog server.
|
| |
| Result< SnapshotMode > | SnapshotLoadingMode () const |
| | Get the snapshot loading mode.
|
| |
|
ConfigBase & | Set (const Entry< T > &entry, const T &val) |
| |
|
ConfigBase & | Unset (const Entry< T > &entry) |
| |
|
ConfigBase & | Reset () |
| |
|
T | Get (const Entry< T > &entry) const |
| |
|
const std::unordered_map< std::string, std::string > & | configs () const |
| |
|
std::unordered_map< std::string, std::string > & | mutable_configs () |
| |
| std::unordered_map< std::string, std::string > | Extract (std::string_view prefix) const |
| | Extracts the prefix from the configuration.
|
| |
|
|
static Entry< std::string > | kUri {"uri", ""} |
| | The URI of the REST catalog server.
|
| |
|
static Entry< std::string > | kName {"name", ""} |
| | The name of the catalog.
|
| |
|
static Entry< std::string > | kWarehouse {"warehouse", ""} |
| | The warehouse path.
|
| |
|
static Entry< std::string > | kIOImpl {"io-impl", ""} |
| | The FileIO implementation name.
|
| |
|
static Entry< std::string > | kPrefix {"prefix", ""} |
| | The optional prefix for REST API paths.
|
| |
|
static Entry< std::string > | kNamespaceSeparator {"namespace-separator", "%1F"} |
| | The encoded separator used to join namespace levels in REST paths.
|
| |
|
static Entry< std::string > | kSnapshotLoadingMode {"snapshot-loading-mode", "ALL"} |
| | The snapshot loading mode (ALL or REFS).
|
| |
|
static constexpr std::string_view | kHeaderPrefix = "header." |
| | The prefix for HTTP headers.
|
| |
|
|
std::unordered_map< std::string, std::string > | configs_ |
| |
Configuration class for a REST Catalog.
◆ SnapshotLoadingMode()
| Result< SnapshotMode > iceberg::rest::RestCatalogProperties::SnapshotLoadingMode |
( |
| ) |
const |
Get the snapshot loading mode.
- Returns
- SnapshotMode::kAll if configured as "ALL", SnapshotMode::kRefs if "REFS", or an error if the value is invalid. Parsing is case-insensitive to match Java behavior.
◆ Uri()
| Result< std::string_view > iceberg::rest::RestCatalogProperties::Uri |
( |
| ) |
const |
Get the URI of the REST catalog server.
- Returns
- The URI if configured, or an error if not set or empty.
The documentation for this class was generated from the following files: