Enum PartitionGranularity

  • All Implemented Interfaces:
    Serializable, Comparable<PartitionGranularity>, Constable

    public enum PartitionGranularity
    extends Enum<PartitionGranularity>
    A small enum for defining the granularity of the partition. Used principally by the PB storage plugin. The time intervals here have to fit within each other for certain optimizations to work. That is, 5 minutes completely fits within all the granularities larger than it (15,30,60,day,month,year) and 15 minutes completely fits within all the granularities larger than it and so on...
    Author:
    mshankar
    • Method Detail

      • values

        public static PartitionGranularity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PartitionGranularity valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getApproxSecondsPerChunk

        public int getApproxSecondsPerChunk()
      • getApproxMinutesPerChunk

        public int getApproxMinutesPerChunk()