Class TimePeriodComputeConstGivenCalAddEval
java.lang.Object
com.espertech.esper.common.internal.epl.expression.time.eval.TimePeriodComputeConstGivenCalAddEval
- All Implemented Interfaces:
TimePeriodCompute
,TimePeriodProvide
public class TimePeriodComputeConstGivenCalAddEval
extends Object
implements TimePeriodCompute, TimePeriodProvide
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTimePeriodComputeConstGivenCalAddEval
(TimePeriodAdder[] adders, int[] added, TimeAbacus timeAbacus, int indexMicroseconds, TimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionlong
deltaAdd
(long fromTime, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) deltaAddWReference
(long fromTime, long reference, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) long
deltaSubtract
(long fromTime, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) long
deltaUseRuntimeTime
(EventBean[] eventsPerStream, ExprEvaluatorContext context, TimeProvider timeProvider) void
setAdded
(int[] added) void
setAdders
(TimePeriodAdder[] adders) void
setIndexMicroseconds
(int indexMicroseconds) void
setTimeAbacus
(TimeAbacus timeAbacus) void
setTimeZone
(TimeZone timeZone)
-
Field Details
-
EPTYPE
-
-
Constructor Details
-
TimePeriodComputeConstGivenCalAddEval
public TimePeriodComputeConstGivenCalAddEval() -
TimePeriodComputeConstGivenCalAddEval
public TimePeriodComputeConstGivenCalAddEval(TimePeriodAdder[] adders, int[] added, TimeAbacus timeAbacus, int indexMicroseconds, TimeZone timeZone)
-
-
Method Details
-
setAdders
-
setAdded
public void setAdded(int[] added) -
setTimeAbacus
-
setIndexMicroseconds
public void setIndexMicroseconds(int indexMicroseconds) -
setTimeZone
-
deltaAdd
public long deltaAdd(long fromTime, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
deltaAdd
in interfaceTimePeriodCompute
- Specified by:
deltaAdd
in interfaceTimePeriodProvide
-
deltaSubtract
public long deltaSubtract(long fromTime, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
deltaSubtract
in interfaceTimePeriodCompute
- Specified by:
deltaSubtract
in interfaceTimePeriodProvide
-
deltaUseRuntimeTime
public long deltaUseRuntimeTime(EventBean[] eventsPerStream, ExprEvaluatorContext context, TimeProvider timeProvider) - Specified by:
deltaUseRuntimeTime
in interfaceTimePeriodCompute
-
deltaAddWReference
public TimePeriodDeltaResult deltaAddWReference(long fromTime, long reference, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
deltaAddWReference
in interfaceTimePeriodCompute
- Specified by:
deltaAddWReference
in interfaceTimePeriodProvide
-
getNonVariableProvide
- Specified by:
getNonVariableProvide
in interfaceTimePeriodCompute
-