Class IntervalComputerForgeFactory.IntervalComputerOverlapsAndByThresholdEval
java.lang.Object
com.espertech.esper.common.internal.epl.datetime.interval.IntervalComputerForgeFactory.IntervalComputerOverlapsAndByThresholdEval
- All Implemented Interfaces:
IntervalComputerEval
- Enclosing class:
- IntervalComputerForgeFactory
public static class IntervalComputerForgeFactory.IntervalComputerOverlapsAndByThresholdEval
extends Object
implements IntervalComputerEval
-
Constructor Summary
ConstructorDescriptionIntervalComputerOverlapsAndByThresholdEval
(boolean overlaps, IntervalDeltaExprEvaluator thresholdExpr) -
Method Summary
Modifier and TypeMethodDescriptionstatic CodegenExpression
codegen
(IntervalComputerForgeFactory.IntervalComputerOverlapsAndByThreshold forge, CodegenExpression leftStart, CodegenExpression leftEnd, CodegenExpression rightStart, CodegenExpression rightEnd, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) compute
(long leftStart, long leftEnd, long rightStart, long rightEnd, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) static boolean
computeIntervalOverlaps
(long left, long leftEnd, long right, long rightEnd, long min, long max) NOTE: Code-generation-invoked method, method name and parameter order matters
-
Constructor Details
-
IntervalComputerOverlapsAndByThresholdEval
public IntervalComputerOverlapsAndByThresholdEval(boolean overlaps, IntervalDeltaExprEvaluator thresholdExpr)
-
-
Method Details
-
compute
public Boolean compute(long leftStart, long leftEnd, long rightStart, long rightEnd, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) - Specified by:
compute
in interfaceIntervalComputerEval
-
codegen
public static CodegenExpression codegen(IntervalComputerForgeFactory.IntervalComputerOverlapsAndByThreshold forge, CodegenExpression leftStart, CodegenExpression leftEnd, CodegenExpression rightStart, CodegenExpression rightEnd, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
computeIntervalOverlaps
public static boolean computeIntervalOverlaps(long left, long leftEnd, long right, long rightEnd, long min, long max) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
left
- left startleftEnd
- left endright
- right startrightEnd
- right endmin
- minmax
- max- Returns:
- flag
-