22#include "migration/cassandra/CassandraMigrationBackend.hpp"
23#include "migration/cassandra/impl/FullTableScannerAdapterBase.hpp"
25#include <boost/asio/spawn.hpp>
26#include <xrpl/basics/Blob.h>
27#include <xrpl/basics/base_uint.h>
28#include <xrpl/protocol/STTx.h>
29#include <xrpl/protocol/TxMeta.h>
37namespace migration::cassandra::impl {
44 using Row = std::tuple<ripple::uint256, std::uint64_t, std::uint32_t, ripple::Blob, ripple::Blob>;
45 static constexpr char const* kPARTITION_KEY =
"hash";
46 static constexpr char const* kTABLE_NAME =
"transactions";
55 using OnTransactionRead = std::function<void(ripple::STTx, ripple::TxMeta)>;
63 explicit TransactionsAdapter(std::shared_ptr<CassandraMigrationBackend> backend, OnTransactionRead onTxRead)
74 onRowRead(TableTransactionsDesc::Row
const& row)
override;
77 OnTransactionRead onTransactionRead_;
The adapter for the transactions table. This class is responsible for reading the transactions from t...
Definition TransactionsAdapter.hpp:53
TransactionsAdapter(std::shared_ptr< CassandraMigrationBackend > backend, OnTransactionRead onTxRead)
Construct a new Transactions Adapter object.
Definition TransactionsAdapter.hpp:63
void onRowRead(TableTransactionsDesc::Row const &row) override
The callback when a row is read.
Definition TransactionsAdapter.cpp:29
The base class for the full table scanner adapter. It is responsible for reading the rows from the fu...
Definition FullTableScannerAdapterBase.hpp:40
The description of the transactions table. It has to be a TableSpec.
Definition TransactionsAdapter.hpp:42