Class Granularities

java.lang.Object
org.apache.calcite.adapter.druid.Granularities

public class Granularities extends Object
Factory methods and helpers for Granularity.
  • Method Details

    • all

      public static Granularity all()
      Returns a Granularity that causes all rows to be rolled up into one.
    • createGranularity

      public static Granularity createGranularity(org.apache.calcite.avatica.util.TimeUnitRange timeUnit, String timeZone)
      Creates a Granularity based on a time unit.

      When used in a query, Druid will rollup and round time values based on specified period and timezone.