#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 |
Definition at line 51 of file LoadClient.h.
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.
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.
|
private |
Definition at line 78 of file LoadClient.h.
|
private |
Definition at line 82 of file LoadClient.h.
|
private |
Definition at line 83 of file LoadClient.h.
|
private |
Definition at line 80 of file LoadClient.h.
|
private |
Definition at line 81 of file LoadClient.h.
|
private |
Definition at line 79 of file LoadClient.h.
|
private |
Definition at line 77 of file LoadClient.h.