com.espertech.esper.client.soda
Class ContextDescriptorConditionTimePeriod

java.lang.Object
  extended by com.espertech.esper.client.soda.ContextDescriptorConditionTimePeriod
All Implemented Interfaces:
ContextDescriptorCondition, java.io.Serializable

public class ContextDescriptorConditionTimePeriod
extends java.lang.Object
implements ContextDescriptorCondition

Context condition that start/initiated or ends/terminates context partitions based on a time period.

See Also:
Serialized Form

Constructor Summary
ContextDescriptorConditionTimePeriod()
          Ctor.
ContextDescriptorConditionTimePeriod(Expression timePeriod, boolean now)
          Ctor.
 
Method Summary
 Expression getTimePeriod()
          Returns the time period expression
 boolean isNow()
          Returns "now" indicator
 void setNow(boolean now)
          Sets "now" indicator
 void setTimePeriod(Expression timePeriod)
          Sets the time period expression
 void toEPL(java.io.StringWriter writer, EPStatementFormatter formatter)
          Populate the EPL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextDescriptorConditionTimePeriod

public ContextDescriptorConditionTimePeriod()
Ctor.


ContextDescriptorConditionTimePeriod

public ContextDescriptorConditionTimePeriod(Expression timePeriod,
                                            boolean now)
Ctor.

Parameters:
timePeriod - time period expression
now - indicator whether "now"
Method Detail

getTimePeriod

public Expression getTimePeriod()
Returns the time period expression

Returns:
time period expression

setTimePeriod

public void setTimePeriod(Expression timePeriod)
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

public void toEPL(java.io.StringWriter writer,
                  EPStatementFormatter formatter)
Description copied from interface: ContextDescriptorCondition
Populate the EPL.

Specified by:
toEPL in interface ContextDescriptorCondition
Parameters:
writer - output
formatter - formatter

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com