Class TimeUnits

java.lang.Object
org.apache.druid.sql.calcite.expression.TimeUnits

public class TimeUnits extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeUnits

      public TimeUnits()
  • Method Details

    • toPeriod

      @Nullable public 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.
      Parameters:
      timeUnitRange - time unit
      Returns:
      queryGranularity, or null