com.espertech.esper.epl.expression
Interface ExprTimePeriod

All Superinterfaces:
ExprEvaluator, ExprNode, ExprValidator, MetaDefItem, java.io.Serializable
All Known Implementing Classes:
ExprTimePeriodImpl

public interface ExprTimePeriod
extends ExprNode, ExprEvaluator

Expression representing a time period.

Child nodes to this expression carry the actual parts and must return a numeric value.


Method Summary
 TimePeriod evaluateGetTimePeriod(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context)
           
 boolean hasVariable()
           
 boolean isHasDay()
          Indicator whether the time period has a day part child expression.
 boolean isHasHour()
          Indicator whether the time period has a hour part child expression.
 boolean isHasMillisecond()
          Indicator whether the time period has a millisecond part child expression.
 boolean isHasMinute()
          Indicator whether the time period has a minute part child expression.
 boolean isHasMonth()
          Indicator whether the time period has a month part child expression.
 boolean isHasSecond()
          Indicator whether the time period has a second part child expression.
 boolean isHasWeek()
          Indicator whether the time period has a week part child expression.
 boolean isHasYear()
          Indicator whether the time period has a year part child expression.
 
Methods inherited from interface com.espertech.esper.epl.expression.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, equalsNode, getChildNodes, getExprEvaluator, isConstantResult, replaceUnlistedChildNode, setChildNode, setChildNodes, toExpressionString
 
Methods inherited from interface com.espertech.esper.epl.expression.ExprValidator
validate
 
Methods inherited from interface com.espertech.esper.epl.expression.ExprEvaluator
evaluate, getEventType, getType
 

Method Detail

hasVariable

boolean hasVariable()

evaluateGetTimePeriod

TimePeriod evaluateGetTimePeriod(EventBean[] eventsPerStream,
                                 boolean newData,
                                 ExprEvaluatorContext context)

isHasDay

boolean isHasDay()
Indicator whether the time period has a day part child expression.

Returns:
true for part present, false for not present

isHasHour

boolean isHasHour()
Indicator whether the time period has a hour part child expression.

Returns:
true for part present, false for not present

isHasMinute

boolean isHasMinute()
Indicator whether the time period has a minute part child expression.

Returns:
true for part present, false for not present

isHasSecond

boolean isHasSecond()
Indicator whether the time period has a second part child expression.

Returns:
true for part present, false for not present

isHasMillisecond

boolean isHasMillisecond()
Indicator whether the time period has a millisecond part child expression.

Returns:
true for part present, false for not present

isHasYear

boolean isHasYear()
Indicator whether the time period has a year part child expression.

Returns:
true for part present, false for not present

isHasMonth

boolean isHasMonth()
Indicator whether the time period has a month part child expression.

Returns:
true for part present, false for not present

isHasWeek

boolean isHasWeek()
Indicator whether the time period has a week part child expression.

Returns:
true for part present, false for not present

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