Class ContextDescriptorConditionTimePeriod
java.lang.Object
com.espertech.esper.common.client.soda.ContextDescriptorConditionTimePeriod
- All Implemented Interfaces:
ContextDescriptorCondition
,Serializable
public class ContextDescriptorConditionTimePeriod
extends Object
implements ContextDescriptorCondition
Context condition that start/initiated or ends/terminates context partitions based on a time period.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ContextDescriptorConditionTimePeriod
(Expression timePeriod, boolean now) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the time period expressionboolean
isNow()
Returns "now" indicatorvoid
setNow
(boolean now) Sets "now" indicatorvoid
setTimePeriod
(Expression timePeriod) Sets the time period expressionvoid
toEPL
(StringWriter writer, EPStatementFormatter formatter) Populate the EPL.
-
Constructor Details
-
ContextDescriptorConditionTimePeriod
public ContextDescriptorConditionTimePeriod()Ctor. -
ContextDescriptorConditionTimePeriod
Ctor.- Parameters:
timePeriod
- time period expressionnow
- indicator whether "now"
-
-
Method Details
-
getTimePeriod
Returns the time period expression- Returns:
- time period expression
-
setTimePeriod
Sets the time period expression- Parameters:
timePeriod
- time period expression
-
isNow
public boolean isNow()Returns "now" indicator- Returns:
- "now" indicator
-
setNow
public void setNow(boolean now) Sets "now" indicator- Parameters:
now
- "now" indicator
-
toEPL
Description copied from interface:ContextDescriptorCondition
Populate the EPL.- Specified by:
toEPL
in interfaceContextDescriptorCondition
- Parameters:
writer
- outputformatter
- formatter
-