23#include <unordered_map>
45 inline static Entry<std::string> kUri{
"uri",
""};
47 inline static Entry<std::string> kName{
"name",
""};
49 inline static Entry<std::string> kWarehouse{
"warehouse",
""};
51 inline static Entry<std::string> kIOImpl{
"io-impl",
""};
53 inline static Entry<std::string> kPrefix{
"prefix",
""};
55 inline static Entry<std::string> kNamespaceSeparator{
"namespace-separator",
"%1F"};
57 inline static Entry<std::string> kSnapshotLoadingMode{
"snapshot-loading-mode",
"ALL"};
59 inline static Entry<std::string> kMetricsReportingEnabled{
60 "rest-metrics-reporting-enabled",
"true"};
62 inline static constexpr std::string_view kHeaderPrefix =
"header.";
69 std::unordered_map<std::string, std::string> properties);
Configuration class for a REST Catalog.
Definition catalog_properties.h:39
static RestCatalogProperties default_properties()
Create a default RestCatalogProperties instance.
Result< SnapshotMode > SnapshotLoadingMode() const
Get the snapshot loading mode.
static RestCatalogProperties FromMap(std::unordered_map< std::string, std::string > properties)
Create a RestCatalogProperties instance from a map of key-value pairs.
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.
Provide typed configuration helpers.
Define symbol visibility macros for the REST catalog library.
REST catalog APIs.
Definition auth_manager.h:34
SnapshotMode
Snapshot loading mode for REST catalog.
Definition catalog_properties.h:35
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.