Package | Description |
---|---|
org.apache.flink.table.utils |
Modifier and Type | Method and Description |
---|---|
static DateTimeUtils.TimeUnitRange |
DateTimeUtils.TimeUnitRange.of(DateTimeUtils.TimeUnit startUnit,
DateTimeUtils.TimeUnit endUnit)
Returns a
TimeUnitRange with a given start and end unit. |
static DateTimeUtils.TimeUnitRange |
DateTimeUtils.TimeUnitRange.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeUtils.TimeUnitRange[] |
DateTimeUtils.TimeUnitRange.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static long |
DateTimeUtils.extractFromDate(DateTimeUtils.TimeUnitRange range,
int date) |
static long |
DateTimeUtils.extractFromDate(DateTimeUtils.TimeUnitRange range,
long date) |
static long |
DateTimeUtils.extractFromTimestamp(DateTimeUtils.TimeUnitRange range,
TimestampData ts,
TimeZone tz) |
static long |
DateTimeUtils.timestampCeil(DateTimeUtils.TimeUnitRange range,
long ts,
TimeZone tz)
Keep the algorithm consistent with Calcite DateTimeUtils.julianDateFloor, but here we take
time zone into account.
|
static long |
DateTimeUtils.timestampFloor(DateTimeUtils.TimeUnitRange range,
long ts,
TimeZone tz) |
static long |
DateTimeUtils.unixDateCeil(DateTimeUtils.TimeUnitRange range,
long date) |
static long |
DateTimeUtils.unixDateFloor(DateTimeUtils.TimeUnitRange range,
long date) |
static long |
DateTimeUtils.unixTimestampCeil(DateTimeUtils.TimeUnitRange range,
long timestamp) |
static long |
DateTimeUtils.unixTimestampFloor(DateTimeUtils.TimeUnitRange range,
long timestamp) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.