Clio develop
The XRP Ledger API server.
|
The base class for the full table scanner adapter. It is responsible for reading the rows from the full table scanner and call the callback when a row is read. With this base class, each table adapter can focus on the actual row data converting. More...
#include <FullTableScannerAdapterBase.hpp>
Public Member Functions | |
FullTableScannerAdapterBase (std::shared_ptr< CassandraMigrationBackend > backend) | |
Construct a new Full Table Scanner Adapter Base object. | |
void | readByTokenRange (TokenRange const &range, boost::asio::yield_context yield) |
Read the row in the given token range from database, this is the adapt function for the FullTableScanner. | |
virtual void | onRowRead (TableDesc::Row const &row)=0 |
Called when a row is read. The derived class should implement this function to convert the database blob to actual data type. | |
Protected Attributes | |
std::shared_ptr< CassandraMigrationBackend > | backend_ |
The backend to use. | |
The base class for the full table scanner adapter. It is responsible for reading the rows from the full table scanner and call the callback when a row is read. With this base class, each table adapter can focus on the actual row data converting.
TableDesc | The table description, it has to be a TableSpec. |
|
inline |
Construct a new Full Table Scanner Adapter Base object.
backend | The backend |
|
pure virtual |
Called when a row is read. The derived class should implement this function to convert the database blob to actual data type.
row | The row read |
|
inline |
Read the row in the given token range from database, this is the adapt function for the FullTableScanner.
range | The token range to read |
yield | The yield context |