public class TimeUnits extends Object
Constructor and Description |
---|
TimeUnits() |
Modifier and Type | Method and Description |
---|---|
static PeriodGranularity |
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 PeriodGranularity toQueryGranularity(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange, org.joda.time.DateTimeZone timeZone)
timeUnitRange
- time unittimeZone
- session time zoneCopyright © 2011–2018. All rights reserved.