com.espertech.esper.epl.expression.time
Interface ExprTimePeriod

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

public interface ExprTimePeriod
extends ExprNode

Expression representing a time period.

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


Method Summary
 ExprTimePeriodEvalDeltaConst constEvaluator(ExprEvaluatorContext context)
           
 double evaluateAsSeconds(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context)
           
 TimePeriod evaluateGetTimePeriod(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context)
           
 boolean hasVariable()
           
 boolean isConstantResult()
          Returns true if the expression node's evaluation value doesn't depend on any events data, as must be determined at validation time, which is bottom-up and therefore reliably allows each node to determine constant value.
 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.
 ExprTimePeriodEvalDeltaNonConst nonconstEvaluator()
           
 
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, equalsNode, getChildNodes, getExprEvaluator, getPrecedence, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
 
Methods inherited from interface com.espertech.esper.epl.expression.core.ExprValidator
validate
 

Method Detail

hasVariable

boolean hasVariable()

constEvaluator

ExprTimePeriodEvalDeltaConst constEvaluator(ExprEvaluatorContext context)

nonconstEvaluator

ExprTimePeriodEvalDeltaNonConst nonconstEvaluator()

evaluateAsSeconds

double evaluateAsSeconds(EventBean[] eventsPerStream,
                         boolean newData,
                         ExprEvaluatorContext context)

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

isConstantResult

boolean isConstantResult()
Description copied from interface: ExprNode
Returns true if the expression node's evaluation value doesn't depend on any events data, as must be determined at validation time, which is bottom-up and therefore reliably allows each node to determine constant value.

Specified by:
isConstantResult in interface ExprNode
Returns:
true for constant evaluation value, false for non-constant evaluation value

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