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