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

#include <lance/detail/declarations.hpp>

Public Member Functions

 FileSession (const std::string &base_uri, const StorageOptionsAccessor *storage_options=nullptr, const Session *session=nullptr, std::optional< FileSchedulerConfig > scheduler_config=std::nullopt)
 
 FileSession (FileSession &&) noexcept=default
 
FileSession & operator= (FileSession &&) noexcept=default
 
 FileSession (const FileSession &)=delete
 
FileSession & operator= (const FileSession &)=delete
 
void reset () noexcept
 
 operator bool () const noexcept
 
std::string base_path () const
 
FileReader open_reader (const std::string &relative_path, const FileReaderOptions &options={}) const
 
FileWriter open_writer (const std::string &relative_path, const ArrowSchema *schema, const FileWriterOptions &options={}) const
 
PackedBlobWriter open_packed_blob_writer (const std::string &data_file_path, uint32_t blob_id) const
 
DedicatedBlobWriter open_dedicated_blob_writer (const std::string &data_file_path, uint32_t blob_id) const
 
bool contains (const std::string &relative_path) const
 
PathList list (std::optional< std::string > relative_path=std::nullopt) const
 
DelimitedList list_with_delimiter (std::optional< std::string > relative_path=std::nullopt) const
 
ByteBuffer read_range (const std::string &relative_path, uint64_t offset, uint64_t length) const
 
void delete_file (const std::string &relative_path) const
 
void upload_file (const std::string &local_path, const std::string &relative_remote_path) const
 
void download_file (const std::string &relative_remote_path, const std::string &local_path) const
 
LanceScanStats scheduler_stats () const
 
LanceObjectStoreRegistryStats registry_stats () const
 
FileStoreInfo store_info () const
 
LanceObjectStoreIoStats store_io_stats () const
 

Detailed Description

Definition at line 6303 of file declarations.hpp.

Constructor & Destructor Documentation

◆ FileSession() [1/3]

lance::FileSession::FileSession ( const std::string & base_uri,
const StorageOptionsAccessor * storage_options = nullptr,
const Session * session = nullptr,
std::optional< FileSchedulerConfig > scheduler_config = std::nullopt )

◆ FileSession() [2/3]

lance::FileSession::FileSession ( FileSession && )
defaultnoexcept

◆ FileSession() [3/3]

lance::FileSession::FileSession ( const FileSession & )
delete

Member Function Documentation

◆ base_path()

std::string lance::FileSession::base_path ( ) const

◆ contains()

bool lance::FileSession::contains ( const std::string & relative_path) const

◆ delete_file()

void lance::FileSession::delete_file ( const std::string & relative_path) const

◆ download_file()

void lance::FileSession::download_file ( const std::string & relative_remote_path,
const std::string & local_path ) const

◆ list()

PathList lance::FileSession::list ( std::optional< std::string > relative_path = std::nullopt) const

◆ list_with_delimiter()

DelimitedList lance::FileSession::list_with_delimiter ( std::optional< std::string > relative_path = std::nullopt) const

◆ open_dedicated_blob_writer()

DedicatedBlobWriter lance::FileSession::open_dedicated_blob_writer ( const std::string & data_file_path,
uint32_t blob_id ) const

◆ open_packed_blob_writer()

PackedBlobWriter lance::FileSession::open_packed_blob_writer ( const std::string & data_file_path,
uint32_t blob_id ) const

◆ open_reader()

FileReader lance::FileSession::open_reader ( const std::string & relative_path,
const FileReaderOptions & options = {} ) const

◆ open_writer()

FileWriter lance::FileSession::open_writer ( const std::string & relative_path,
const ArrowSchema * schema,
const FileWriterOptions & options = {} ) const

◆ operator bool()

lance::FileSession::operator bool ( ) const
explicitnoexcept

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ read_range()

ByteBuffer lance::FileSession::read_range ( const std::string & relative_path,
uint64_t offset,
uint64_t length ) const

◆ registry_stats()

LanceObjectStoreRegistryStats lance::FileSession::registry_stats ( ) const

◆ reset()

void lance::FileSession::reset ( )
noexcept

◆ scheduler_stats()

LanceScanStats lance::FileSession::scheduler_stats ( ) const

◆ store_info()

FileStoreInfo lance::FileSession::store_info ( ) const

◆ store_io_stats()

LanceObjectStoreIoStats lance::FileSession::store_io_stats ( ) const

◆ upload_file()

void lance::FileSession::upload_file ( const std::string & local_path,
const std::string & relative_remote_path ) const

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