Class CalendarWithDateForgeOp
java.lang.Object
com.espertech.esper.common.internal.epl.datetime.calop.CalendarWithDateForgeOp
- All Implemented Interfaces:
CalendarOp
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCalendarWithDateForgeOp
(ExprEvaluator year, ExprEvaluator month, ExprEvaluator day) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
actionSetYMDCalendar
(Calendar cal, Integer year, Integer month, Integer day) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic LocalDateTime
actionSetYMDLocalDateTime
(LocalDateTime ldt, Integer year, Integer month, Integer day) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic ZonedDateTime
actionSetYMDZonedDateTime
(ZonedDateTime zdt, Integer year, Integer month, Integer day) NOTE: Code-generation-invoked method, method name and parameter order mattersstatic CodegenExpression
codegenCalendar
(CalendarWithDateForge forge, CodegenExpression cal, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenLDT
(CalendarWithDateForge forge, CodegenExpression ldt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) static CodegenExpression
codegenZDT
(CalendarWithDateForge 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) protected static Integer
getInt
(ExprEvaluator expr, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
-
Field Details
-
METHOD_ACTIONSETYMDCALENDAR
- See Also:
-
-
Constructor Details
-
CalendarWithDateForgeOp
-
-
Method Details
-
evaluate
public void evaluate(Calendar cal, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) - Specified by:
evaluate
in interfaceCalendarOp
-
codegenCalendar
public static CodegenExpression codegenCalendar(CalendarWithDateForge 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(CalendarWithDateForge 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(CalendarWithDateForge forge, CodegenExpression zdt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) -
getInt
protected static Integer getInt(ExprEvaluator expr, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context) -
actionSetYMDCalendar
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
cal
- calendaryear
- yearmonth
- monthday
- day
-
actionSetYMDLocalDateTime
public static LocalDateTime actionSetYMDLocalDateTime(LocalDateTime ldt, Integer year, Integer month, Integer day) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
ldt
- localdatetimeyear
- yearmonth
- monthday
- day- Returns:
- ldt
-
actionSetYMDZonedDateTime
public static ZonedDateTime actionSetYMDZonedDateTime(ZonedDateTime zdt, Integer year, Integer month, Integer day) NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
zdt
- zoneddatetimeyear
- yearmonth
- monthday
- day- Returns:
- ldt
-