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
Hypertable::TableCallback Class Reference

Represents an open table. More...

#include <TableCallback.h>

Inheritance diagram for Hypertable::TableCallback:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::TableCallback:
Collaboration graph
[legend]

Public Member Functions

 TableCallback (TableScanner *scanner)
 
 TableCallback (TableMutator *mutator)
 
void scan_ok (TableScannerAsync *scanner, ScanCellsPtr &cells)
 Callback method for successful scan. More...
 
void scan_error (TableScannerAsync *scanner, int error, const std::string &error_msg, bool eos)
 Callback method for scan errors. More...
 
void update_ok (TableMutatorAsync *mutator)
 Callback method for successful mutations. More...
 
void update_error (TableMutatorAsync *mutator, int error, FailedMutations &failures)
 Callback method for mutation errors. More...
 
- Public Member Functions inherited from Hypertable::ResultCallback
 ResultCallback ()
 
virtual ~ResultCallback ()
 
virtual void register_scanner (TableScannerAsync *scanner)
 Hook for derived classes which want to keep track of scanners/mutators. More...
 
virtual void deregister_scanner (TableScannerAsync *scanner)
 Hook for derived classes which want to keep track of scanners/mutators. More...
 
virtual void register_mutator (TableMutatorAsync *mutator)
 Hook for derived classes which want to keep track of scanners/mutators. More...
 
virtual void deregister_mutator (TableMutatorAsync *mutator)
 Hook for derived classes which want to keep track of scanners/mutators. More...
 
virtual void completed ()
 Callback method for completion, default one does nothing. More...
 
void wait_for_completion ()
 Blocks till outstanding == 0. More...
 
void increment_outstanding ()
 
void decrement_outstanding ()
 
bool is_done ()
 
- Public Member Functions inherited from Hypertable::ClientObject
virtual ~ClientObject ()
 Destructor. More...
 

Private Attributes

TableScannerm_scanner
 
TableMutatorm_mutator
 

Additional Inherited Members

- Protected Attributes inherited from Hypertable::ResultCallback
int m_outstanding {}
 
std::mutex m_outstanding_mutex
 
std::condition_variable m_outstanding_cond
 

Detailed Description

Represents an open table.

Definition at line 34 of file TableCallback.h.

Constructor & Destructor Documentation

Hypertable::TableCallback::TableCallback ( TableScanner scanner)
inline

Definition at line 38 of file TableCallback.h.

Hypertable::TableCallback::TableCallback ( TableMutator mutator)
inline

Definition at line 39 of file TableCallback.h.

Member Function Documentation

void Hypertable::TableCallback::scan_error ( TableScannerAsync scanner,
int  error,
const std::string &  error_msg,
bool  eos 
)
virtual

Callback method for scan errors.

Parameters
scanner
error
error_msg
eosend of scan

Implements Hypertable::ResultCallback.

Definition at line 34 of file TableCallback.cc.

void Hypertable::TableCallback::scan_ok ( TableScannerAsync scanner,
ScanCellsPtr cells 
)
virtual

Callback method for successful scan.

Parameters
scanner
cellsreturned cells

Implements Hypertable::ResultCallback.

Definition at line 30 of file TableCallback.cc.

void Hypertable::TableCallback::update_error ( TableMutatorAsync mutator,
int  error,
FailedMutations failures 
)
virtual

Callback method for mutation errors.

Parameters
mutator
error
failuresvector of failed mutations

Implements Hypertable::ResultCallback.

Definition at line 43 of file TableCallback.cc.

void Hypertable::TableCallback::update_ok ( TableMutatorAsync mutator)
virtual

Callback method for successful mutations.

Parameters
mutator

Implements Hypertable::ResultCallback.

Definition at line 39 of file TableCallback.cc.

Member Data Documentation

TableMutator* Hypertable::TableCallback::m_mutator
private

Definition at line 78 of file TableCallback.h.

TableScanner* Hypertable::TableCallback::m_scanner
private

Definition at line 77 of file TableCallback.h.


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