NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Statistic::AbstractStatisticStore Class Referenceabstract

An interface for any statistic store. More...

#include <AbstractStatisticStore.hpp>

Public Member Functions

virtual std::vector< StatisticPtrgetStatistics (const StatisticHash &statisticHash, const Windowing::TimeMeasure &startTs, const Windowing::TimeMeasure &endTs)=0
 Gets all statistics belonging to the statisticHash in the period of [startTs, endTs]. More...
 
virtual std::vector< HashStatisticPairgetAllStatistics ()=0
 Returns all statistics currently in this store. More...
 
virtual bool insertStatistic (const StatisticHash &statisticHash, StatisticPtr statistic)=0
 Inserts statistic with the statisticHash into a StatisticStore. More...
 
virtual bool deleteStatistics (const StatisticHash &statisticHash, const Windowing::TimeMeasure &startTs, const Windowing::TimeMeasure &endTs)=0
 Deletes all statistics belonging to the statisticHash in the period of [startTs, endTs]. More...
 
virtual ~AbstractStatisticStore ()=default
 Virtual destructor. More...
 

Detailed Description

An interface for any statistic store.

Constructor & Destructor Documentation

◆ ~AbstractStatisticStore()

virtual NES::Statistic::AbstractStatisticStore::~AbstractStatisticStore ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ deleteStatistics()

virtual bool NES::Statistic::AbstractStatisticStore::deleteStatistics ( const StatisticHash &  statisticHash,
const Windowing::TimeMeasure &  startTs,
const Windowing::TimeMeasure &  endTs 
)
pure virtual

Deletes all statistics belonging to the statisticHash in the period of [startTs, endTs].

Parameters
statisticHash
startTs
endTs
Returns
Success

Implemented in NES::Statistic::DefaultStatisticStore.

◆ getAllStatistics()

virtual std::vector<HashStatisticPair> NES::Statistic::AbstractStatisticStore::getAllStatistics ( )
pure virtual

Returns all statistics currently in this store.

Returns
Vector of HashStatisticPair

Implemented in NES::Statistic::DefaultStatisticStore.

◆ getStatistics()

virtual std::vector<StatisticPtr> NES::Statistic::AbstractStatisticStore::getStatistics ( const StatisticHash &  statisticHash,
const Windowing::TimeMeasure &  startTs,
const Windowing::TimeMeasure &  endTs 
)
pure virtual

Gets all statistics belonging to the statisticHash in the period of [startTs, endTs].

Parameters
statisticHash
startTs
endTs
Returns
Vector of StatisticPtr

Implemented in NES::Statistic::DefaultStatisticStore.

◆ insertStatistic()

virtual bool NES::Statistic::AbstractStatisticStore::insertStatistic ( const StatisticHash &  statisticHash,
StatisticPtr  statistic 
)
pure virtual

Inserts statistic with the statisticHash into a StatisticStore.

Parameters
statisticHash
statistic
Returns
Success

Implemented in NES::Statistic::DefaultStatisticStore.


The documentation for this class was generated from the following file: