22#include "data/Types.hpp"
23#include "migration/cassandra/CassandraMigrationBackend.hpp"
24#include "migration/cassandra/impl/FullTableScannerAdapterBase.hpp"
26#include <boost/asio/spawn.hpp>
27#include <xrpl/basics/base_uint.h>
28#include <xrpl/protocol/STLedgerEntry.h>
29#include <xrpl/protocol/STObject.h>
38namespace migration::cassandra::impl {
44 using Row = std::tuple<ripple::uint256, std::uint32_t, data::Blob>;
45 static constexpr char const* kPARTITION_KEY =
"key";
46 static constexpr char const* kTABLE_NAME =
"objects";
55 using OnStateRead = std::function<void(std::uint32_t, std::optional<ripple::SLE>)>;
63 explicit ObjectsAdapter(std::shared_ptr<CassandraMigrationBackend> backend, OnStateRead onStateRead)
74 onRowRead(TableObjectsDesc::Row
const& row)
override;
77 OnStateRead onStateRead_;
The adapter for the objects table. This class is responsible for reading the objects from the FullTab...
Definition ObjectsAdapter.hpp:53
ObjectsAdapter(std::shared_ptr< CassandraMigrationBackend > backend, OnStateRead onStateRead)
Construct a new Objects Adapter object.
Definition ObjectsAdapter.hpp:63
void onRowRead(TableObjectsDesc::Row const &row) override
Called when a row is read.
Definition ObjectsAdapter.cpp:31
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 objects table. It has to be a TableSpec.
Definition ObjectsAdapter.hpp:43