0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
LoadClient Class Reference

#include <LoadClient.h>

Public Member Functions

 LoadClient (const String &config_file, bool thrift=false)
 
 LoadClient (bool thrift=false)
 
 ~LoadClient ()
 
void create_mutator (const String &tablename, int mutator_flags,::uint64_t shared_mutator_flush_interval)
 
void create_scanner (const String &tablename, const ScanSpec &scan_spec)
 Create a scanner. More...
 
void set_cells (const Cells &cells)
 
void set_delete (const KeySpec &key)
 
void flush ()
 
void close_scanner ()
 
uint64_t get_all_cells ()
 Get all cells that match the spec in the current scanner return the total number of bytes scanned. More...
 

Private Attributes

bool m_thrift
 
ClientPtr m_native_client
 
NamespacePtr m_ns
 
TablePtr m_native_table
 
bool m_native_table_open
 
TableMutatorPtr m_native_mutator
 
TableScannerPtr m_native_scanner
 

Detailed Description

Definition at line 51 of file LoadClient.h.

Constructor & Destructor Documentation

LoadClient::LoadClient ( const String config_file,
bool  thrift = false 
)

Definition at line 33 of file LoadClient.cc.

LoadClient::LoadClient ( bool  thrift = false)

Definition at line 56 of file LoadClient.cc.

LoadClient::~LoadClient ( )

Definition at line 235 of file LoadClient.cc.

Member Function Documentation

void LoadClient::close_scanner ( )

Definition at line 223 of file LoadClient.cc.

void LoadClient::create_mutator ( const String tablename,
int  mutator_flags,
::uint64_t  shared_mutator_flush_interval 
)

Definition at line 80 of file LoadClient.cc.

void LoadClient::create_scanner ( const String tablename,
const ScanSpec &  scan_spec 
)

Create a scanner.

For thrift scanners, just use the 1st column and 1st row_interval specified in the ScanSpec.

Definition at line 159 of file LoadClient.cc.

void LoadClient::flush ( )

Definition at line 146 of file LoadClient.cc.

uint64_t LoadClient::get_all_cells ( )

Get all cells that match the spec in the current scanner return the total number of bytes scanned.

Definition at line 191 of file LoadClient.cc.

void LoadClient::set_cells ( const Cells cells)

Definition at line 100 of file LoadClient.cc.

void LoadClient::set_delete ( const KeySpec key)

Definition at line 120 of file LoadClient.cc.

Member Data Documentation

ClientPtr LoadClient::m_native_client
private

Definition at line 78 of file LoadClient.h.

TableMutatorPtr LoadClient::m_native_mutator
private

Definition at line 82 of file LoadClient.h.

TableScannerPtr LoadClient::m_native_scanner
private

Definition at line 83 of file LoadClient.h.

TablePtr LoadClient::m_native_table
private

Definition at line 80 of file LoadClient.h.

bool LoadClient::m_native_table_open
private

Definition at line 81 of file LoadClient.h.

NamespacePtr LoadClient::m_ns
private

Definition at line 79 of file LoadClient.h.

bool LoadClient::m_thrift
private

Definition at line 77 of file LoadClient.h.


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