Class CalendarPlusMinusForgeOp
java.lang.Object
com.espertech.esper.common.internal.epl.datetime.calop.CalendarPlusMinusForgeOp
- All Implemented Interfaces:
CalendarOp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
actionCalendarPlusMinusNumber
(Calendar cal, int factor, Long duration) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic void
actionCalendarPlusMinusTimePeriod
(Calendar cal, int factor, TimePeriod tp) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic LocalDateTime
actionLDTPlusMinusNumber
(LocalDateTime ldt, int factor, Long duration) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic LocalDateTime
actionLDTPlusMinusTimePeriod
(LocalDateTime ldt, int factor, TimePeriod tp) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic void
actionSafeOverflow
(Calendar cal, int factor, TimePeriod tp) static ZonedDateTime
actionZDTPlusMinusNumber
(ZonedDateTime zdt, int factor, Long duration) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic ZonedDateTime
actionZDTPlusMinusTimePeriod
(ZonedDateTime zdt, int factor, TimePeriod tp) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic CodegenExpression
codegenCalendar
(CalendarPlusMinusForge forge, CodegenExpression cal, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenLDT
(CalendarPlusMinusForge forge, CodegenExpression ldt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenZDT
(CalendarPlusMinusForge forge, CodegenExpression zdt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) evaluate
(LocalDateTime ldt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) evaluate
(ZonedDateTime zdt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) void
evaluate
(Calendar cal, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
-
Constructor Details
-
CalendarPlusMinusForgeOp
-
-
Method Details
-
evaluate
public void evaluate(Calendar cal, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluate
in interfaceCalendarOp
-
codegenCalendar
public static CodegenExpression codegenCalendar(CalendarPlusMinusForge forge, CodegenExpression cal, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public LocalDateTime evaluate(LocalDateTime ldt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluate
in interfaceCalendarOp
-
codegenLDT
public static CodegenExpression codegenLDT(CalendarPlusMinusForge forge, CodegenExpression ldt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
evaluate
public ZonedDateTime evaluate(ZonedDateTime zdt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluate
in interfaceCalendarOp
-
codegenZDT
public static CodegenExpression codegenZDT(CalendarPlusMinusForge forge, CodegenExpression zdt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
actionCalendarPlusMinusNumber
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
cal
- calendarfactor
- factorduration
- duration
-
actionLDTPlusMinusNumber
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
ldt
- ldtfactor
- factorduration
- duration- Returns:
- ldt
-
actionZDTPlusMinusNumber
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
zdt
- ldtfactor
- factorduration
- duration- Returns:
- zdt
-
actionSafeOverflow
-
actionCalendarPlusMinusTimePeriod
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
cal
- calendarfactor
- factortp
- duration
-
actionLDTPlusMinusTimePeriod
public static LocalDateTime actionLDTPlusMinusTimePeriod(LocalDateTime ldt, int factor, TimePeriod tp) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
ldt
- ldtfactor
- factortp
- duration- Returns:
- ldt
-
actionZDTPlusMinusTimePeriod
public static ZonedDateTime actionZDTPlusMinusTimePeriod(ZonedDateTime zdt, int factor, TimePeriod tp) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
zdt
- zdtfactor
- factortp
- duration- Returns:
- zdt
-