Package io.siddhi.query.api.aggregation
Class TimePeriod
- java.lang.Object
-
- io.siddhi.query.api.aggregation.TimePeriod
-
- All Implemented Interfaces:
SiddhiElement,Serializable
public class TimePeriod extends Object implements SiddhiElement
Time Period API. This defines all the time durations supported in Incremental Aggregation, and the relevant operators- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimePeriod.DurationDurations supported in Incremental Aggregationstatic classTimePeriod.OperatorOperators supported in Incremental Aggregation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<TimePeriod.Duration>getDurations()TimePeriod.OperatorgetOperator()int[]getQueryContextEndIndex()int[]getQueryContextStartIndex()inthashCode()static TimePeriodinterval(TimePeriod.Duration... durations)static TimePeriodrange(TimePeriod.Duration begging, TimePeriod.Duration end)voidsetQueryContextEndIndex(int[] lineAndColumn)voidsetQueryContextStartIndex(int[] lineAndColumn)
-
-
-
Method Detail
-
range
public static TimePeriod range(TimePeriod.Duration begging, TimePeriod.Duration end)
-
interval
public static TimePeriod interval(TimePeriod.Duration... durations)
-
getOperator
public TimePeriod.Operator getOperator()
-
getDurations
public List<TimePeriod.Duration> getDurations()
-
getQueryContextStartIndex
public int[] getQueryContextStartIndex()
- Specified by:
getQueryContextStartIndexin interfaceSiddhiElement
-
setQueryContextStartIndex
public void setQueryContextStartIndex(int[] lineAndColumn)
- Specified by:
setQueryContextStartIndexin interfaceSiddhiElement
-
getQueryContextEndIndex
public int[] getQueryContextEndIndex()
- Specified by:
getQueryContextEndIndexin interfaceSiddhiElement
-
setQueryContextEndIndex
public void setQueryContextEndIndex(int[] lineAndColumn)
- Specified by:
setQueryContextEndIndexin interfaceSiddhiElement
-
-