0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TableCallback.cc
Go to the documentation of this file.
1 
22 #include "Common/Compat.h"
23 
24 #include "TableCallback.h"
25 #include "TableScanner.h"
26 #include "TableMutator.h"
27 
28 namespace Hypertable {
29 
31  m_scanner->scan_ok(cells);
32 }
33 
35  const string &error_msg, bool eos) {
36  m_scanner->scan_error(error, error_msg);
37 }
38 
41 }
42 
44  FailedMutations &failures) {
45  m_mutator->update_error(error, failures);
46 }
47 
48 } // namespace Hypertable
49 
void update_ok(TableMutatorAsync *mutator)
Callback method for successful mutations.
TableScanner * m_scanner
Definition: TableCallback.h:77
Asynchronous table scanner.
TableMutator * m_mutator
Definition: TableCallback.h:78
void scan_error(TableScannerAsync *scanner, int error, const std::string &error_msg, bool eos)
Callback method for scan errors.
void update_error(TableMutatorAsync *mutator, int error, FailedMutations &failures)
Callback method for mutation errors.
Provides the ability to mutate a table in the form of adding and deleting rows and cells...
std::shared_ptr< ScanCells > ScanCellsPtr
Smart pointer to ScanCells.
Definition: ScanCells.h:143
Compatibility Macros for C/C++.
Hypertable definitions
void scan_ok(TableScannerAsync *scanner, ScanCellsPtr &cells)
Callback method for successful scan.
void update_error(int error, FailedMutations &failures)
void scan_error(int error, const std::string &error_msg)
Callback for scan errors.
Definition: TableScanner.cc:98
std::vector< FailedMutation > FailedMutations
Definition: Cells.h:39
void scan_ok(ScanCellsPtr &cells)
Callback for successful scan.
Definition: TableScanner.cc:94