fpnt::KeyGenerator class

Constructors, destructors, conversion operators

KeyGenerator(std::vector<std::string> fields = {})
~KeyGenerator() defaulted virtual

Public functions

auto genKey(const KeyGenContext& ctx) -> nlohmann::json pure virtual
auto getKey(const nlohmann::json& pkt, std::string& granularity, size_t file_idx) -> const CacheEntry&

Protected variables

std::vector<std::string> used_fields
std::unordered_map<size_t, std::vector<CacheEntry>> cache