public interface ExprTimePeriod extends ExprNode
Child nodes to this expression carry the actual parts and must return a numeric value.
Modifier and Type | Method and Description |
---|---|
ExprTimePeriodEvalDeltaConst |
constEvaluator(ExprEvaluatorContext context) |
double |
evaluateAsSeconds(EventBean[] eventsPerStream,
boolean newData,
ExprEvaluatorContext context) |
CodegenExpression |
evaluateAsSecondsCodegen(CodegenParamSetExprPremade params,
CodegenContext context) |
TimePeriod |
evaluateGetTimePeriod(EventBean[] eventsPerStream,
boolean newData,
ExprEvaluatorContext context) |
CodegenExpression |
evaluateGetTimePeriodCodegen(CodegenParamSetExprPremade params,
CodegenContext 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 |
isHasMicrosecond()
Indicator whether the time period has a microsecond 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() |
accept, accept, acceptChildnodes, addChildNode, addChildNodes, equalsNode, getChildNodes, getForge, getPrecedence, replaceUnlistedChildNode, setChildNode, setChildNodes
toEPL
validate
boolean hasVariable()
ExprTimePeriodEvalDeltaConst constEvaluator(ExprEvaluatorContext context)
ExprTimePeriodEvalDeltaNonConst nonconstEvaluator()
double evaluateAsSeconds(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context)
TimePeriod evaluateGetTimePeriod(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context)
boolean isHasDay()
boolean isHasHour()
boolean isHasMinute()
boolean isHasSecond()
boolean isHasMillisecond()
boolean isHasMicrosecond()
boolean isHasYear()
boolean isHasMonth()
boolean isHasWeek()
boolean isConstantResult()
ExprNode
isConstantResult
in interface ExprNode
CodegenExpression evaluateGetTimePeriodCodegen(CodegenParamSetExprPremade params, CodegenContext context)
CodegenExpression evaluateAsSecondsCodegen(CodegenParamSetExprPremade params, CodegenContext context)