Class Granularities.PeriodGranularity

  • All Implemented Interfaces:
    DruidJson, Granularity
    Enclosing class:

    private static class Granularities.PeriodGranularity
    extends java.lang.Object
    implements Granularity
    Implementation of Granularity based on a time unit. Corresponds to PeriodGranularity in Druid.
    • Constructor Summary

      Modifier Constructor Description
      private PeriodGranularity​(Granularity.Type type, java.lang.String period, java.lang.String timeZone)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Granularity.Type getType()  
      void write​(com.fasterxml.jackson.core.JsonGenerator generator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • period

        private final java.lang.String period
      • timeZone

        private final java.lang.String timeZone
    • Constructor Detail

      • PeriodGranularity

        private PeriodGranularity​(Granularity.Type type,
                                  java.lang.String period,
                                  java.lang.String timeZone)
    • Method Detail

      • write

        public void write​(com.fasterxml.jackson.core.JsonGenerator generator)
        Specified by:
        write in interface DruidJson