|
std::vector< NodeInfo > | getSubscribers (const NodeData::Key &key) |
|
void | addKeySubscriber (NodeData::Key key, NodeInfo &subscriber) |
|
void | removeKeySubscriber (const NodeData::Key &key, NodeInfo &unsubscriber) |
|
bool | isValueUpToDate (const NodeData::Key &key, uint64_t validity_threshold_timestamp) override |
|
bool | isLocal () const override |
|
virtual bool | insert (Key key, ValueTimestampAndType value_timestamp_and_type) |
|
virtual bool | update (Key key, ValueTimestampAndType value_timestamp_and_type) |
|
virtual void | remove (Key key) |
|
bool | hasKey (const Key &key) |
|
Value | getValue (Key key) |
|
ValueAndTimestamp | getValueAndTimestamp (Key key) |
|
ValueTimestampAndType | getValueTimestampAndType (Key key) |
|
std::unordered_map< Key, ValueTimestampAndType > | getData () const |
|
std::vector< Key > | getAllCurrentKeys () |
|
| SERIALIZE (data_) |
|
|
enum | ValueType : uint8_t { kValueDynamic = 0
, kValueStatic = 1
} |
|
using | Key = std::string |
|
using | Value = std::variant< int, float, bool, std::string > |
|
using | ValueAndTimestamp = std::tuple< Value, uint64_t > |
|
using | ValueTimestampAndType = std::tuple< Value, uint64_t, ValueType > |
|
using | ValueAndType = std::tuple< Value, ValueType > |
|
using | Attributes = std::vector< std::tuple< NodeData::Key, NodeData::Value > > |
|
using | NodesWithAttributes = std::unordered_map< NodeInfo, Attributes, NodeInfoHasher > |
|
using | AttributesAndTypes = std::vector< std::tuple< NodeData::Key, NodeData::Value, NodeData::ValueType > > |
|
using | NodesWithAttributesAndTypes = std::unordered_map< NodeInfo, AttributesAndTypes, NodeInfoHasher > |
|
◆ isLocal()
bool minhton::LocalData::isLocal |
( |
| ) |
const |
|
overridevirtual |
◆ isValueUpToDate()
bool minhton::LocalData::isValueUpToDate |
( |
const NodeData::Key & |
key, |
|
|
uint64_t |
validity_threshold_timestamp |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files:
- minhton/include/minhton/algorithms/esearch/local_data.h
- minhton/src/algorithms/esearch/local_data.cpp