|
NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
This is a thread-safe StatisticStore that simply stores all data in an unordered_map that is made thread-safe by using folly::Synchronized. More...
#include <DefaultStatisticStore.hpp>
Public Member Functions | |
| std::vector< StatisticPtr > | getStatistics (const StatisticHash &statisticHash, const Windowing::TimeMeasure &startTs, const Windowing::TimeMeasure &endTs) override |
| Gets all statistics belonging to the statisticHash in the period of [startTs, endTs]. More... | |
| std::vector< HashStatisticPair > | getAllStatistics () override |
| Returns all statistics currently in this store. More... | |
| bool | insertStatistic (const StatisticHash &statisticHash, StatisticPtr statistic) override |
| Implements the insert of the interface. If a statistic exists with the same startTs and endTs, we do not allow the insertion. More... | |
| bool | deleteStatistics (const StatisticHash &statisticHash, const Windowing::TimeMeasure &startTs, const Windowing::TimeMeasure &endTs) override |
| Implements the delete of the interface for all statistics in the period [startTs, endTs]. More... | |
| virtual | ~DefaultStatisticStore () |
| Virtual destructor. More... | |
Public Member Functions inherited from NES::Statistic::AbstractStatisticStore | |
| virtual | ~AbstractStatisticStore ()=default |
| Virtual destructor. More... | |
Static Public Member Functions | |
| static StatisticStorePtr | create () |
| Creates a DefaultStatisticStore. More... | |
This is a thread-safe StatisticStore that simply stores all data in an unordered_map that is made thread-safe by using folly::Synchronized.
|
virtualdefault |
Virtual destructor.
|
static |
Creates a DefaultStatisticStore.
Referenced by NES::Runtime::Execution::CountMinBuildExecutionTest::SetUp(), and NES::Runtime::Execution::HyperLogLogBuildExecutionTest::SetUp().
|
overridevirtual |
Implements the delete of the interface for all statistics in the period [startTs, endTs].
| statisticKey | |
| startTs | |
| endTs |
Implements NES::Statistic::AbstractStatisticStore.
Referenced by NES::Statistic::TEST_F().
|
overridevirtual |
Returns all statistics currently in this store.
Implements NES::Statistic::AbstractStatisticStore.
|
overridevirtual |
Gets all statistics belonging to the statisticHash in the period of [startTs, endTs].
| statisticHash | |
| startTs | |
| endTs |
Implements NES::Statistic::AbstractStatisticStore.
Referenced by NES::Statistic::TEST_F(), and NES::Statistic::TEST_P().
|
overridevirtual |
Implements the insert of the interface. If a statistic exists with the same startTs and endTs, we do not allow the insertion.
| statisticKey | |
| statistic |
Implements NES::Statistic::AbstractStatisticStore.
Referenced by NES::Statistic::TEST_F().