Class ReformatBetweenNonConstantParamsForgeOp
java.lang.Object
com.espertech.esper.common.internal.epl.datetime.reformatop.ReformatBetweenNonConstantParamsForgeOp
- All Implemented Interfaces:
ReformatOp
-
Constructor Summary
ConstructorDescriptionReformatBetweenNonConstantParamsForgeOp
(ReformatBetweenNonConstantParamsForge forge, ExprEvaluator startEval, ExprEvaluator endEval, ExprEvaluator evalIncludeLow, ExprEvaluator evalIncludeHigh) -
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegenCal
(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenDate
(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenLDT
(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenLong
(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenZDT
(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static boolean
compareTimestamps
(long first, long ts, long second, boolean includeLowEndpoint, boolean includeHighEndpoint) NOTE: Code-generation-invoked method, method name and parameter order mattersevaluate
(Long ts, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) evaluate
(LocalDateTime ldt, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) evaluate
(ZonedDateTime zdt, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) evaluate
(Calendar cal, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) evaluate
(Date d, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) evaluateInternal
(long ts, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext)
-
Constructor Details
-
ReformatBetweenNonConstantParamsForgeOp
public ReformatBetweenNonConstantParamsForgeOp(ReformatBetweenNonConstantParamsForge forge, ExprEvaluator startEval, ExprEvaluator endEval, ExprEvaluator evalIncludeLow, ExprEvaluator evalIncludeHigh)
-
-
Method Details
-
evaluate
public Object evaluate(Long ts, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) - Specified by:
evaluate
in interfaceReformatOp
-
codegenLong
public static CodegenExpression codegenLong(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public Object evaluate(Date d, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) - Specified by:
evaluate
in interfaceReformatOp
-
codegenDate
public static CodegenExpression codegenDate(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public Object evaluate(Calendar cal, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) - Specified by:
evaluate
in interfaceReformatOp
-
codegenCal
public static CodegenExpression codegenCal(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public Object evaluate(LocalDateTime ldt, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) - Specified by:
evaluate
in interfaceReformatOp
-
codegenLDT
public static CodegenExpression codegenLDT(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public Object evaluate(ZonedDateTime zdt, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) - Specified by:
evaluate
in interfaceReformatOp
-
codegenZDT
public static CodegenExpression codegenZDT(ReformatBetweenNonConstantParamsForge forge, CodegenExpression inner, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluateInternal
public Object evaluateInternal(long ts, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext exprEvaluatorContext) -
compareTimestamps
public static boolean compareTimestamps(long first, long ts, long second, boolean includeLowEndpoint, boolean includeHighEndpoint) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
first
- firstts
- tssecond
- secondincludeLowEndpoint
- flagincludeHighEndpoint
- flag- Returns:
- result
-