Represents an open table. More...
#include <ResultCallback.h>
Public Member Functions | |
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... | |
virtual void | scan_ok (TableScannerAsync *scanner, ScanCellsPtr &cells)=0 |
Callback method for successful scan. More... | |
virtual void | scan_error (TableScannerAsync *scanner, int error, const std::string &error_msg, bool eos)=0 |
Callback method for scan errors. More... | |
virtual void | update_ok (TableMutatorAsync *mutator)=0 |
Callback method for successful update. More... | |
virtual void | update_error (TableMutatorAsync *mutator, int error, FailedMutations &failures)=0 |
Callback method for update errors. 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... | |
Protected Attributes | |
int | m_outstanding {} |
std::mutex | m_outstanding_mutex |
std::condition_variable | m_outstanding_cond |
Represents an open table.
Definition at line 43 of file ResultCallback.h.
|
inline |
Definition at line 47 of file ResultCallback.h.
|
inlinevirtual |
Definition at line 49 of file ResultCallback.h.
|
inlinevirtual |
Callback method for completion, default one does nothing.
Definition at line 77 of file ResultCallback.h.
|
inline |
Definition at line 133 of file ResultCallback.h.
|
inlinevirtual |
Hook for derived classes which want to keep track of scanners/mutators.
Reimplemented in Hypertable::Future.
Definition at line 71 of file ResultCallback.h.
|
inlinevirtual |
Hook for derived classes which want to keep track of scanners/mutators.
Reimplemented in Hypertable::Future.
Definition at line 61 of file ResultCallback.h.
|
inline |
Definition at line 125 of file ResultCallback.h.
|
inline |
Definition at line 146 of file ResultCallback.h.
|
inlinevirtual |
Hook for derived classes which want to keep track of scanners/mutators.
Reimplemented in Hypertable::Future.
Definition at line 66 of file ResultCallback.h.
|
inlinevirtual |
Hook for derived classes which want to keep track of scanners/mutators.
Reimplemented in Hypertable::IndexScannerCallback, and Hypertable::Future.
Definition at line 56 of file ResultCallback.h.
|
pure virtual |
Callback method for scan errors.
scanner | |
error | |
error_msg | |
eos | end of scan |
Implemented in Hypertable::IndexScannerCallback, Hypertable::Future, Hypertable::IndexMutatorCallback, Hypertable::TableCallback, and Hypertable::IndexUpdaterCallback.
|
pure virtual |
Callback method for successful scan.
scanner | |
cells | returned cells |
Implemented in Hypertable::IndexScannerCallback, Hypertable::Future, Hypertable::IndexMutatorCallback, Hypertable::IndexUpdaterCallback, and Hypertable::TableCallback.
|
pure virtual |
Callback method for update errors.
mutator | Mutator pointer |
error | error code |
failures | vector of failed mutations |
Implemented in Hypertable::IndexScannerCallback, Hypertable::Future, Hypertable::IndexMutatorCallback, Hypertable::TableCallback, and Hypertable::IndexUpdaterCallback.
|
pure virtual |
Callback method for successful update.
mutator |
Implemented in Hypertable::IndexScannerCallback, Hypertable::Future, Hypertable::IndexMutatorCallback, Hypertable::TableCallback, and Hypertable::IndexUpdaterCallback.
|
inline |
Blocks till outstanding == 0.
Definition at line 117 of file ResultCallback.h.
|
protected |
Definition at line 152 of file ResultCallback.h.
|
protected |
Definition at line 154 of file ResultCallback.h.
|
protected |
Definition at line 153 of file ResultCallback.h.