Class Granularities

  • public class Granularities
    extends java.lang.Object
    Factory methods and helpers for Granularity.
    • Constructor Detail

      • Granularities

        private Granularities()
    • Method Detail

      • 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,
                                                    java.lang.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.