38 : m_callback(this), m_cur_cells(0), m_cur_cells_index(0), m_cur_cells_size(0),
39 m_error(
Error::
OK), m_eos(false) {
41 m_queue = make_shared<TableScannerQueue>();
44 make_shared<TableScannerAsync>(comm, app_queue, table, range_locator,
99 m_queue->set_error(error, error_msg);
105 while (scanner.
next(cell))
TableScannerAsyncPtr m_scanner
std::shared_ptr< RangeLocator > RangeLocatorPtr
Smart pointer to RangeLocator.
TableScannerQueuePtr m_queue
void unget(const Cell &cell)
Ungets one cell.
Scan predicate and control specification.
Represents an open table.
std::shared_ptr< ScanCells > ScanCellsPtr
Smart pointer to ScanCells.
bool next(Cell &cell)
Gets the next cell.
Compatibility Macros for C/C++.
std::shared_ptr< ApplicationQueueInterface > ApplicationQueueInterfacePtr
Smart pointer to ApplicationQueueInterface.
Synchronous table scanner.
#define HT_THROW_(_code_)
void copy(TableDumper &, CellsBuilder &)
Entry point to AsyncComm service.
TableScanner(Comm *comm, Table *table, RangeLocatorPtr &range_locator, const ScanSpec &scan_spec, uint32_t timeout_ms)
Constructor.
A String class based on std::string.
void add(const Cell &cell, bool own=true)
Encapsulates decomposed key and value.
void scan_error(int error, const std::string &error_msg)
Callback for scan errors.
Error codes, Exception handling, error logging.
#define HT_THROW(_code_, _msg_)
void scan_ok(ScanCellsPtr &cells)
Callback for successful scan.