23#include <unordered_map>
59 inline static Entry<std::string> kUri{
"uri",
""};
62 inline static Entry<std::string> kName{
"name",
"hive"};
67 inline static Entry<std::string> kWarehouse{
"warehouse",
""};
71 inline static Entry<std::string> kIOImpl{
"io-impl",
""};
74 inline static Entry<std::string> kThriftTransport{
"thrift-transport",
"buffered"};
77 inline static Entry<int> kConnectTimeoutMs{
"connect-timeout-ms", 30000};
80 inline static Entry<int> kSocketTimeoutMs{
"socket-timeout-ms", 60000};
86 inline static Entry<bool> kLockEnabled{
"hive.lock-enabled",
false};
93 std::unordered_map<std::string, std::string> properties);
Configuration for the iceberg_hive HiveCatalog.
Definition hive_catalog_properties.h:47
static HiveCatalogProperties default_properties()
Build a HiveCatalogProperties with defaults applied.
static HiveCatalogProperties FromMap(std::unordered_map< std::string, std::string > properties)
Build a HiveCatalogProperties from a property map.
Result< std::string_view > Uri() const
Resolve kUri. Returns an error if the URI is unset or empty.
Result< HiveThriftTransport > ThriftTransport() const
Parse kThriftTransport into a HiveThriftTransport. Comparison is case-insensitive to match the conven...
Provide typed configuration helpers.
Define symbol visibility macros for the Hive catalog library.
Hive catalog APIs.
Definition hive_catalog.h:34
HiveThriftTransport
Thrift framing mode used to connect to the Hive Metastore.
Definition hive_catalog_properties.h:39
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.