Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::Namespace Class Reference

Move-only namespace handle with native concrete-implementation retention. More...

#include <lance/detail/declarations.hpp>

Classes

struct  CustomClientSpec
 
struct  CustomDispatchSpec
 

Public Member Functions

 Namespace (Namespace &&) noexcept=default
 
Namespace & operator= (Namespace &&) noexcept=default
 
 Namespace (const Namespace &)=delete
 
Namespace & operator= (const Namespace &)=delete
 
std::string id () const
 
std::string ops_metrics_json () const
 
void reset_ops_metrics ()
 
NamespaceResult call (const std::string &operation, const std::string &request_json="{}", const uint8_t *request_bytes=nullptr, size_t request_bytes_len=0) const
 
NamespaceResult call (const std::string &operation, const std::string &request_json, const std::vector< uint8_t > &request_bytes) const
 
const LanceNamespace * c_handle () const noexcept
 

Static Public Member Functions

static Namespace directory (const std::vector< std::pair< std::string, std::string > > &properties={}, const Session *session=nullptr, const DynamicContextProvider *context_provider=nullptr)
 
static Namespace rest (const std::vector< std::pair< std::string, std::string > > &properties, const DynamicContextProvider *context_provider=nullptr)
 
static Namespace connect (const std::string &impl_name, const std::vector< std::pair< std::string, std::string > > &properties={}, const Session *session=nullptr, const DynamicContextProvider *context_provider=nullptr)
 
static Namespace custom (const CustomClientSpec &spec)
 
static Namespace custom_dispatch (const CustomDispatchSpec &spec)
 

Detailed Description

Move-only namespace handle with native concrete-implementation retention.

Definition at line 6544 of file declarations.hpp.

Constructor & Destructor Documentation

◆ Namespace() [1/2]

lance::Namespace::Namespace ( Namespace && )
defaultnoexcept

◆ Namespace() [2/2]

lance::Namespace::Namespace ( const Namespace & )
delete

Member Function Documentation

◆ c_handle()

const LanceNamespace * lance::Namespace::c_handle ( ) const
noexcept

◆ call() [1/2]

NamespaceResult lance::Namespace::call ( const std::string & operation,
const std::string & request_json,
const std::vector< uint8_t > & request_bytes ) const

◆ call() [2/2]

NamespaceResult lance::Namespace::call ( const std::string & operation,
const std::string & request_json = "{}",
const uint8_t * request_bytes = nullptr,
size_t request_bytes_len = 0 ) const

◆ connect()

static Namespace lance::Namespace::connect ( const std::string & impl_name,
const std::vector< std::pair< std::string, std::string > > & properties = {},
const Session * session = nullptr,
const DynamicContextProvider * context_provider = nullptr )
static

◆ custom()

static Namespace lance::Namespace::custom ( const CustomClientSpec & spec)
static

◆ custom_dispatch()

static Namespace lance::Namespace::custom_dispatch ( const CustomDispatchSpec & spec)
static

◆ directory()

static Namespace lance::Namespace::directory ( const std::vector< std::pair< std::string, std::string > > & properties = {},
const Session * session = nullptr,
const DynamicContextProvider * context_provider = nullptr )
static

◆ id()

std::string lance::Namespace::id ( ) const

◆ operator=() [1/2]

Namespace & lance::Namespace::operator= ( const Namespace & )
delete

◆ operator=() [2/2]

Namespace & lance::Namespace::operator= ( Namespace && )
defaultnoexcept

◆ ops_metrics_json()

std::string lance::Namespace::ops_metrics_json ( ) const

◆ reset_ops_metrics()

void lance::Namespace::reset_ops_metrics ( )

◆ rest()

static Namespace lance::Namespace::rest ( const std::vector< std::pair< std::string, std::string > > & properties,
const DynamicContextProvider * context_provider = nullptr )
static

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