|
|
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 Entry< std::string > | kMetricsReportingEnabled |
| | Whether to report metrics to the REST catalog server (default: true).
|
| |
|
static Entry< std::string > | kScanPlanningMode {"scan-planning-mode", "client"} |
| | The scan planning mode (client or server).
|
| |
| static Entry< int64_t > | kScanPlanningPollTimeoutMs |
| | Maximum time to wait for a submitted scan plan, in milliseconds.
|
| |
| static Entry< int32_t > | kScanPlanningPollNumRetries |
| | Extra polls after the first fetch of a submitted scan plan.
|
| |
|
static constexpr std::string_view | kHeaderPrefix = "header." |
| | The prefix for HTTP headers.
|
| |
| static Entry< int64_t > | kClientConnectionTimeoutMs |
| | HTTP connection timeout in milliseconds, matching Java REST clients.
|
| |
|
static Entry< int64_t > | kClientSocketTimeoutMs {"rest.client.socket-timeout-ms", 0} |
| | HTTP socket/read timeout in milliseconds, matching Java REST clients.
|
| |
| static Entry< bool > | kTrustServerOAuth2Uri |
| | Whether server configuration may select the OAuth2 token endpoint. When false, the client must explicitly configure an absolute http:// or https:// oauth2-server-uri. This setting is read from client configuration only.
|
| |
Configuration class for a REST Catalog.