public class TimeUnits extends Object
Constructor and Description |
---|
TimeUnits() |
Modifier and Type | Method and Description |
---|---|
static String |
toDateTimeFormat(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange)
Returns the Joda format string corresponding to extracting on a Calcite TimeUnitRange, or null if there is none.
|
static Granularity |
toQueryGranularity(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange,
org.joda.time.DateTimeZone timeZone)
Returns the Druid QueryGranularity corresponding to a Calcite TimeUnitRange, or null if there is none.
|
public static Granularity toQueryGranularity(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange, org.joda.time.DateTimeZone timeZone)
timeUnitRange
- time unittimeZone
- session time zonepublic static String toDateTimeFormat(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange)
timeUnitRange
- time unitCopyright © 2011–2017. All rights reserved.