1 #ifndef _MADARA_KNOWLEDGE_KNOWLEDGEREQUIREMENTS_H_
2 #define _MADARA_KNOWLEDGE_KNOWLEDGEREQUIREMENTS_H_
60 std::vector<MatchPredicate> t_predicates = {},
61 uint64_t t_quality_threshold = 0,
bool t_use_source_clock =
false)
Provides functions and classes for the distributed knowledge base.
Copyright(c) 2020 Galois.
A helper class for matching prefixes and suffixes.
std::string prefix
a prefix to match
std::string suffix
a suffix to match
Holds settings requirements for knowledge, usually in copying.
uint64_t clock_threshold
Minimum acceptable clock to accept (0 by default)
bool clear_knowledge
If true, during loads, clear the KnowledgeBase first.
KnowledgeRequirements(const KnowledgeRequirements &rhs)
Copy constructor.
KnowledgeRequirements(bool t_clear_knowledge, uint64_t t_clock_threshold=0, std::vector< MatchPredicate > t_predicates={}, uint64_t t_quality_threshold=0, bool t_use_source_clock=false)
Constructor.
std::vector< MatchPredicate > predicates
A vector of acceptable predicates to match (prefix and suffix).
bool use_source_clock
Update to the Lamport Clock of the source.
KnowledgeRequirements()
Constructor.
uint64_t quality_threshold
Minimum acceptable knowledge qualilty to accept (0 by default)