public class DatetimeLongCoercerLocalDateTime extends java.lang.Object implements DatetimeLongCoercer
Constructor and Description |
---|
DatetimeLongCoercerLocalDateTime(java.util.TimeZone timeZone) |
Modifier and Type | Method and Description |
---|---|
CodegenExpression |
codegen(CodegenExpression value,
java.lang.Class valueType,
CodegenClassScope codegenClassScope) |
long |
coerce(java.lang.Object date) |
static long |
coerceLDTToMilliWTimezone(java.time.LocalDateTime ldt,
java.util.TimeZone timeZone)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
public DatetimeLongCoercerLocalDateTime(java.util.TimeZone timeZone)
public long coerce(java.lang.Object date)
coerce
in interface DatetimeLongCoercer
public static long coerceLDTToMilliWTimezone(java.time.LocalDateTime ldt, java.util.TimeZone timeZone)
ldt
- ldttimeZone
- tzpublic CodegenExpression codegen(CodegenExpression value, java.lang.Class valueType, CodegenClassScope codegenClassScope)
codegen
in interface DatetimeLongCoercer