Class ExprTimePeriodForge
java.lang.Object
com.espertech.esper.common.internal.epl.expression.time.node.ExprTimePeriodForge
- All Implemented Interfaces:
ExprForge
Expression representing a time period.
Child nodes to this expression carry the actual parts and must return a numeric value.
-
Constructor Summary
ConstructorDescriptionExprTimePeriodForge
(ExprTimePeriodImpl parent, boolean hasVariable, TimePeriodAdder[] adders) -
Method Summary
Modifier and TypeMethodDescriptiondouble
evaluateAsSeconds
(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) evaluateAsSecondsCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateCodegen
(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluateGetTimePeriod
(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) evaluateGetTimePeriodCodegen
(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) boolean
static EPException
makeTimePeriodParamNullException
(String expressionText) NOTE: Code-generation-invoked method, method name and parameter order matters
-
Constructor Details
-
ExprTimePeriodForge
public ExprTimePeriodForge(ExprTimePeriodImpl parent, boolean hasVariable, TimePeriodAdder[] adders)
-
-
Method Details
-
getForgeConstantType
- Specified by:
getForgeConstantType
in interfaceExprForge
-
constTimePeriodComputeForge
-
nonconstTimePeriodComputeForge
-
getTimeAbacus
-
getExprEvaluator
- Specified by:
getExprEvaluator
in interfaceExprForge
-
evaluateCodegen
public CodegenExpression evaluateCodegen(EPTypeClass requiredType, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
evaluateCodegen
in interfaceExprForge
-
getEvaluationType
- Specified by:
getEvaluationType
in interfaceExprForge
-
isHasVariable
public boolean isHasVariable() -
getAdders
-
getForgeRenderable
- Specified by:
getForgeRenderable
in interfaceExprForge
-
getEvaluators
-
evaluateAsSeconds
public double evaluateAsSeconds(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) -
evaluateAsSecondsCodegen
public CodegenExpression evaluateAsSecondsCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluateGetTimePeriod
public TimePeriod evaluateGetTimePeriod(EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) -
evaluateGetTimePeriodCodegen
public CodegenExpression evaluateGetTimePeriodCodegen(CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
makeTimePeriodParamNullException
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
expressionText
- text- Returns:
- exception
-
getForges
-