NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
The following declares API functions for windowing. More...
Classes | |
class | WindowAggregation |
Typedefs | |
using | WindowAggregationPtr = std::shared_ptr< WindowAggregation > |
Functions | |
API::WindowAggregationPtr | Sum (const ExpressionItem &onField) |
Defines a Sum Aggregation function on a particular field. More... | |
API::WindowAggregationPtr | Min (const ExpressionItem &onField) |
Defines a Min Aggregation function on a particular field. More... | |
API::WindowAggregationPtr | Max (const ExpressionItem &onField) |
Defines a Max Aggregation function on a particular field. More... | |
API::WindowAggregationPtr | Count () |
Defines a Count Aggregation function on a particular field. More... | |
API::WindowAggregationPtr | Median (const ExpressionItem &onField) |
Defines a Median Aggregation function on a particular field. More... | |
API::WindowAggregationPtr | Avg (const ExpressionItem &onField) |
Defines a Agg Aggregation function on a particular field. More... | |
Windowing::TimeCharacteristicPtr | EventTime (const ExpressionItem &onField) |
Defines event time as a time characteristic for a window. More... | |
Windowing::TimeCharacteristicPtr | EventTime (const ExpressionItem &onField, const Windowing::TimeUnit &unit) |
Defines event time as a time characteristic for a window. More... | |
Windowing::TimeCharacteristicPtr | IngestionTime () |
Defines a ingestion time as a time characteristic for a window. More... | |
Windowing::TimeMeasure | Milliseconds (uint64_t milliseconds) |
A time measure in Milliseconds. More... | |
Windowing::TimeMeasure | Seconds (uint64_t seconds) |
A time measure in Seconds. More... | |
Windowing::TimeMeasure | Minutes (uint64_t minutes) |
A time measure in Minutes. More... | |
Windowing::TimeMeasure | Hours (uint64_t hours) |
A time measure in Hours. More... | |
Windowing::TimeMeasure | Days (uint64_t days) |
A time measure in Days. More... | |
Windowing::TimeUnit | Milliseconds () |
A time unit in Milliseconds. More... | |
Windowing::TimeUnit | Seconds () |
A time unit in Seconds. More... | |
Windowing::TimeUnit | Minutes () |
A time unit in Minutes. More... | |
Windowing::TimeUnit | Hours () |
A time unit in Hours. More... | |
Windowing::TimeUnit | Days () |
A time unit in Days. More... | |
ExpressionNodePtr | RecordCreationTs () |
This function provides access to the creation ts (ingestion ts) of an individual record. This is assigned by the data source. More... | |
The following declares API functions for windowing.
typedef std::shared_ptr< WindowAggregation > NES::API::WindowAggregationPtr |
API::WindowAggregationPtr NES::API::Avg | ( | const ExpressionItem & | onField | ) |
Defines a Agg Aggregation function on a particular field.
ExpressionItem | Attribute("field-name") the field which should be aggregated. |
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::TEST_F(), and TEST_F().
API::WindowAggregationPtr NES::API::Count | ( | ) |
Defines a Count Aggregation function on a particular field.
Referenced by NES::TEST_F(), TEST_F(), and NES::Runtime::Execution::TEST_P().
Windowing::TimeUnit NES::API::Days | ( | ) |
A time unit in Days.
References NES::Windowing::TimeUnit::Days().
Windowing::TimeMeasure NES::API::Days | ( | uint64_t | days | ) |
A time measure in Days.
References Hours().
Referenced by NES::TEST_F().
Windowing::TimeCharacteristicPtr NES::API::EventTime | ( | const ExpressionItem & | onField | ) |
Defines event time as a time characteristic for a window.
ExpressionItem | which defines the field name. |
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::addBinaryOperatorToQueryPlan(), NES::createRandomStatisticInfo(), NES::Parsers::NesCEPQueryPlanCreator::createTimeBasedWindow(), NES::Runtime::Execution::StreamIntervalJoinQueryExecutionTest::runSingleJoinQuery(), NES::Statistic::TEST_F(), NES::RequestProcessor::TEST_F(), NES::TEST_F(), TEST_F(), NES::Runtime::Execution::TEST_P(), NES::TEST_P(), and TEST_P().
Windowing::TimeCharacteristicPtr NES::API::EventTime | ( | const ExpressionItem & | onField, |
const Windowing::TimeUnit & | unit | ||
) |
Defines event time as a time characteristic for a window.
ExpressionItem | which defines the field name. |
Timeunit |
References NES::ExpressionItem::getExpressionNode().
Windowing::TimeUnit NES::API::Hours | ( | ) |
A time unit in Hours.
References NES::Windowing::TimeUnit::Hours().
Windowing::TimeMeasure NES::API::Hours | ( | uint64_t | hours | ) |
A time measure in Hours.
References Minutes().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::createIntervalWindow(), Days(), TEST_F(), and NES::Parsers::NesCEPQueryPlanCreator::transformWindowToTimeMeasurements().
Windowing::TimeCharacteristicPtr NES::API::IngestionTime | ( | ) |
Defines a ingestion time as a time characteristic for a window.
Referenced by NES::StatisticIdsExtractorTest::SetUp(), NES::TEST_F(), and TEST_P().
API::WindowAggregationPtr NES::API::Max | ( | const ExpressionItem & | onField | ) |
Defines a Max Aggregation function on a particular field.
ExpressionItem | Attribute("field-name") the field which should be aggregated. |
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::createQueryFromPatternList(), NES::TEST_F(), TEST_F(), and NES::CEPOperatorBuilder::Times::window().
API::WindowAggregationPtr NES::API::Median | ( | const ExpressionItem & | onField | ) |
Defines a Median Aggregation function on a particular field.
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::TEST_F().
Windowing::TimeUnit NES::API::Milliseconds | ( | ) |
A time unit in Milliseconds.
References NES::Windowing::TimeUnit::Milliseconds().
Windowing::TimeMeasure NES::API::Milliseconds | ( | uint64_t | milliseconds | ) |
A time measure in Milliseconds.
Referenced by NES::Statistic::DefaultStatisticStoreTest::createData(), NES::Parsers::NesCEPQueryPlanCreator::createIntervalWindow(), NES::createRandomStatisticInfo(), NES::Runtime::Execution::StreamIntervalJoinQueryExecutionTest::runSingleJoinQuery(), Seconds(), NES::LowerLogicalToPhysicalOperatorsTest::SetUp(), NES::Statistic::TEST_F(), NES::RequestProcessor::TEST_F(), NES::TEST_F(), TEST_F(), NES::Statistic::TEST_P(), NES::Runtime::Execution::TEST_P(), NES::TEST_P(), TEST_P(), and NES::Parsers::NesCEPQueryPlanCreator::transformWindowToTimeMeasurements().
API::WindowAggregationPtr NES::API::Min | ( | const ExpressionItem & | onField | ) |
Defines a Min Aggregation function on a particular field.
ExpressionItem | Attribute("field-name") the field which should be aggregated. |
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::TEST_F(), and TEST_F().
Windowing::TimeUnit NES::API::Minutes | ( | ) |
A time unit in Minutes.
References NES::Windowing::TimeUnit::Minutes().
Windowing::TimeMeasure NES::API::Minutes | ( | uint64_t | minutes | ) |
A time measure in Minutes.
References Seconds().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::createIntervalWindow(), Hours(), NES::StatisticIdsExtractorTest::SetUp(), TEST_F(), NES::TEST_F(), and NES::Parsers::NesCEPQueryPlanCreator::transformWindowToTimeMeasurements().
ExpressionNodePtr NES::API::RecordCreationTs | ( | ) |
This function provides access to the creation ts (ingestion ts) of an individual record. This is assigned by the data source.
References NES::Attribute(), NES::ExpressionItem::getExpressionNode(), and NES::UINT64.
Windowing::TimeUnit NES::API::Seconds | ( | ) |
A time unit in Seconds.
References NES::Windowing::TimeUnit::Seconds().
Windowing::TimeMeasure NES::API::Seconds | ( | uint64_t | seconds | ) |
A time measure in Seconds.
References Milliseconds().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::createIntervalWindow(), Minutes(), NES::TEST_F(), TEST_F(), NES::TEST_P(), NES::Runtime::Execution::TEST_P(), and NES::Parsers::NesCEPQueryPlanCreator::transformWindowToTimeMeasurements().
API::WindowAggregationPtr NES::API::Sum | ( | const ExpressionItem & | onField | ) |
Defines a Sum Aggregation function on a particular field.
ExpressionItem | Attribute("field-name") the field which should be aggregated. |
References NES::ExpressionItem::getExpressionNode().
Referenced by NES::Parsers::NesCEPQueryPlanCreator::createQueryFromPatternList(), TEST_F(), NES::TEST_F(), TEST_P(), NES::TEST_P(), and NES::CEPOperatorBuilder::Times::window().