iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::hive::HmsClient Class Reference

A live connection to a Hive Metastore over Thrift. More...

#include <hms_client.h>

Public Member Functions

 HmsClient (const HmsClient &)=delete
 
HmsClientoperator= (const HmsClient &)=delete
 
 HmsClient (HmsClient &&)=delete
 
HmsClientoperator= (HmsClient &&)=delete
 

Static Public Member Functions

static Result< std::unique_ptr< HmsClient > > Connect (const HiveCatalogProperties &config)
 Connect to the Hive Metastore described by config.
 

Detailed Description

A live connection to a Hive Metastore over Thrift.

Construction goes through Connect, which parses the URI, selects the transport and opens it so that configuration errors surface as iceberg::Error rather than C++ exceptions.

Member Function Documentation

◆ Connect()

static Result< std::unique_ptr< HmsClient > > iceberg::hive::HmsClient::Connect ( const HiveCatalogProperties config)
static

Connect to the Hive Metastore described by config.

Exactly one endpoint is supported: a multi-endpoint config.Uri() returns InvalidArgument until HA failover is implemented in a future commit.


The documentation for this class was generated from the following file: