Interface ExprTimePeriod
- All Superinterfaces:
ExprNode
,ExprNodeRenderable
,ExprValidator
- All Known Implementing Classes:
ExprTimePeriodImpl
Expression representing a time period.
Child nodes to this expression carry the actual parts and must return a numeric value.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluateAsSeconds
(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) evaluateAsSecondsCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateGetTimePeriod
(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) evaluateGetTimePeriodCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) boolean
boolean
boolean
isHasDay()
Indicator whether the time period has a day part child expression.boolean
Indicator whether the time period has a hour part child expression.boolean
Indicator whether the time period has a microsecond part child expression.boolean
Indicator whether the time period has a millisecond part child expression.boolean
Indicator whether the time period has a minute part child expression.boolean
Indicator whether the time period has a month part child expression.boolean
Indicator whether the time period has a second part child expression.boolean
Indicator whether the time period has a week part child expression.boolean
Indicator whether the time period has a year part child expression.makeTimePeriodAnonymous
(CodegenMethod method, CodegenClassScope classScope) Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNode
accept, accept, acceptChildnodes, addChildNode, addChildNodes, equalsNode, getChildNodes, getForge, getPrecedence, replaceUnlistedChildNode, setChildNode, setChildNodes
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprNodeRenderable
toEPL
Methods inherited from interface com.espertech.esper.common.internal.epl.expression.core.ExprValidator
validate
-
Method Details
-
hasVariable
boolean hasVariable() -
getTimePeriodComputeForge
TimePeriodComputeForge getTimePeriodComputeForge() -
getTimePeriodEval
TimePeriodEval getTimePeriodEval() -
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
-
isHasMicrosecond
boolean isHasMicrosecond()Indicator whether the time period has a microsecond 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() -
evaluateGetTimePeriodCodegen
CodegenExpression evaluateGetTimePeriodCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluateAsSecondsCodegen
CodegenExpression evaluateAsSecondsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
makeTimePeriodAnonymous
-