|
| | FlowRadarTest (const std::string_view config_file) |
| | Constructor. More...
|
| |
| void | runTest () override |
| | Test Flow Radar. More...
|
| |
| | TestBase (const std::string_view show_name, const std::string_view config_file, const std::string_view test_path) |
| | Construct by specifying all necessary tables in config file. More...
|
| |
| virtual void | show () const final |
| | Display metrics in a human-readable manner. More...
|
| |
| virtual void | testSize (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch) final |
| | Get the size of the sketch. More...
|
| |
| virtual void | testInsert (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, typename std::vector< Data::Record< key_len >>::const_iterator begin, typename std::vector< Data::Record< key_len >>::const_iterator end) final |
| | Insert a row of records. More...
|
| |
| virtual void | testUpdate (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, typename std::vector< Data::Record< key_len >>::const_iterator begin, typename std::vector< Data::Record< key_len >>::const_iterator end, Data::CntMethod cnt_method) final |
| | Update a row of records (with values to the sketch) More...
|
| |
| virtual void | testQuery (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, const Data::GndTruth< key_len, T > &gnd_truth) final |
| | Query for each flow in ground truth. More...
|
| |
| virtual void | testLookup (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, const Data::GndTruth< key_len, T > &gnd_truth, const Data::GndTruth< key_len, T > &sample) final |
| | Lookup each flow in ground truth. More...
|
| |
| virtual void | testHeavyHitter (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, double threshold, Data::GndTruth< key_len, T > gnd_truth_heavy_hitters) final |
| | Test heavy hitters. More...
|
| |
| virtual void | testHeavyChanger (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch_1, std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch_2, double threshold, Data::GndTruth< key_len, T > gnd_truth_heavy_changers) final |
| | Test heavy changers. More...
|
| |
| virtual void | testDecode (std::unique_ptr< Sketch::SketchBase< key_len, T >> &ptr_sketch, Data::GndTruth< key_len, T > gnd_truth) final |
| | Test decode. More...
|
| |
template<int32_t key_len, typename T, typename hash_t = Hash::AwareHash>
class OmniSketch::Test::FlowRadarTest< key_len, T, hash_t >
Testing class for Flow Radar.