Class IntervalComputerForgeFactory.IntervalComputerConstantCoincides
java.lang.Object
com.espertech.esper.common.internal.epl.datetime.interval.IntervalComputerForgeFactory.IntervalComputerConstantCoincides
- All Implemented Interfaces:
IntervalComputerEval
,IntervalComputerForge
- Enclosing class:
- IntervalComputerForgeFactory
public static class IntervalComputerForgeFactory.IntervalComputerConstantCoincides
extends Object
implements IntervalComputerForge, IntervalComputerEval
Coincides.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncodegen
(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
computeIntervalCoincides
(long left, long leftEnd, long right, long rightEnd, long startThreshold, long endThreshold) NOTE: Code-generation-invoked method, method name and parameter order matters
-
Field Details
-
start
protected final long start -
end
protected final long end
-
-
Constructor Details
-
IntervalComputerConstantCoincides
public IntervalComputerConstantCoincides(IntervalStartEndParameterPairForge pair) throws ExprValidationException - Throws:
ExprValidationException
-
-
Method Details
-
makeComputerEval
- Specified by:
makeComputerEval
in interfaceIntervalComputerForge
-
codegen
public CodegenExpression codegen(CodegenExpression leftStart, CodegenExpression leftEnd, CodegenExpression rightStart, CodegenExpression rightEnd, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) - Specified by:
codegen
in interfaceIntervalComputerForge
-
compute
public Boolean compute(long leftStart, long leftEnd, long rightStart, long rightEnd, EventBean[] eventsPerStream, boolean newData, ExprEvaluatorContext context) - Specified by:
compute
in interfaceIntervalComputerEval
-
computeIntervalCoincides
public static boolean computeIntervalCoincides(long left, long leftEnd, long right, long rightEnd, long startThreshold, long endThreshold) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
left
- left startleftEnd
- left endright
- right startrightEnd
- right endstartThreshold
- start thendThreshold
- end th- Returns:
- flag
-