Enum Class PartitionGranularity
- All Implemented Interfaces:
Serializable,Comparable<PartitionGranularity>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionintintstatic PartitionGranularityReturns the enum constant of this class with the specified name.static PartitionGranularity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARTITION_5MIN
-
PARTITION_15MIN
-
PARTITION_30MIN
-
PARTITION_HOUR
-
PARTITION_DAY
-
PARTITION_MONTH
-
PARTITION_YEAR
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getApproxSecondsPerChunk
public int getApproxSecondsPerChunk() -
getNextLargerGranularity
-
getApproxMinutesPerChunk
public int getApproxMinutesPerChunk()
-