Enum Class PartitionGranularity

java.lang.Object
java.lang.Enum<PartitionGranularity>
org.epics.archiverappliance.common.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
  • Enum Constant Details

  • Method Details

    • values

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

      public static PartitionGranularity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getApproxSecondsPerChunk

      public int getApproxSecondsPerChunk()
    • getNextLargerGranularity

      public PartitionGranularity getNextLargerGranularity()
    • getApproxMinutesPerChunk

      public int getApproxMinutesPerChunk()