public class TimeUnits extends Object
| Constructor and Description |
|---|
TimeUnits() |
| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.Period |
toPeriod(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange)
Returns the Druid QueryGranularity corresponding to a Calcite TimeUnitRange, or null if there is none.
|
@Nullable public static org.joda.time.Period toPeriod(org.apache.calcite.avatica.util.TimeUnitRange timeUnitRange)
timeUnitRange - time unitCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.