hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::RocksDBIndexer Class Referencefinal

#include "rocksdb_indexer.hpp"

Inheritance diagram for iroha::ametsuchi::RocksDBIndexer:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::RocksDBIndexer:
Collaboration graph

Public Member Functions

 RocksDBIndexer (std::shared_ptr< RocksDBContext > db_context)
 
void committedTxHash (const TxPosition &position, shared_model::interface::types::TimestampType const ts, const shared_model::interface::types::HashType &committed_tx_hash) override
 Store a committed tx hash. More...
 
void rejectedTxHash (const TxPosition &position, shared_model::interface::types::TimestampType const ts, const shared_model::interface::types::HashType &rejected_tx_hash) override
 Store a rejected tx hash. More...
 
void txPositions (shared_model::interface::types::AccountIdType const &account, shared_model::interface::types::HashType const &hash, boost::optional< shared_model::interface::types::AssetIdType > &&asset_id, shared_model::interface::types::TimestampType const ts, TxPosition const &position) override
 Index tx info. More...
 
iroha::expected::Result< void, std::string > flush () override
 
- Public Member Functions inherited from iroha::ametsuchi::Indexer
virtual ~Indexer ()=default
 

Constructor & Destructor Documentation

◆ RocksDBIndexer()

RocksDBIndexer::RocksDBIndexer ( std::shared_ptr< RocksDBContext db_context)
Here is the call graph for this function:

Member Function Documentation

◆ committedTxHash()

void RocksDBIndexer::committedTxHash ( const TxPosition position,
shared_model::interface::types::TimestampType const  ts,
const shared_model::interface::types::HashType committed_tx_hash 
)
overridevirtual

Store a committed tx hash.

Implements iroha::ametsuchi::Indexer.

◆ flush()

iroha::expected::Result< void, std::string > RocksDBIndexer::flush ( )
overridevirtual

Flush the indices to storage. Makes the effects of new indices (that were created before this call) visible to other components. Discards indexer inner state on success.

Returns
Void Value on success, string Error on failure.

Implements iroha::ametsuchi::Indexer.

Here is the call graph for this function:

◆ rejectedTxHash()

void RocksDBIndexer::rejectedTxHash ( const TxPosition position,
shared_model::interface::types::TimestampType const  ts,
const shared_model::interface::types::HashType rejected_tx_hash 
)
overridevirtual

Store a rejected tx hash.

Implements iroha::ametsuchi::Indexer.

◆ txPositions()

void RocksDBIndexer::txPositions ( shared_model::interface::types::AccountIdType const &  creator,
shared_model::interface::types::HashType const &  hash,
boost::optional< shared_model::interface::types::AssetIdType > &&  asset_id,
shared_model::interface::types::TimestampType const  ts,
TxPosition const &  position 
)
overridevirtual

Index tx info.

Implements iroha::ametsuchi::Indexer.

Here is the call graph for this function:

The documentation for this class was generated from the following files: