Enum SecondaryPartitionType
- All Implemented Interfaces:
Serializable,Comparable<SecondaryPartitionType>
In Druid, ingested data are primarily partitioned based on time range (@link GranularitySpec#getSegmentGranularity),
and then secondly partitioned based on the given
PartitionsSpec. This enum lists all supported types for the
secondary partitioning.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHash partitioning partitions segments in the same time chunk based on the hash value of the partition dimensions.Linear partitioning partitions segments in the same time chunk based on their size or number of rows in them.Range partitioning partitions segments in the same time chunk based on the value range of the partition dimension. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecondaryPartitionTypeReturns the enum constant of this type with the specified name.static SecondaryPartitionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LINEAR
Linear partitioning partitions segments in the same time chunk based on their size or number of rows in them.- See Also:
-
HASH
Hash partitioning partitions segments in the same time chunk based on the hash value of the partition dimensions.- See Also:
-
RANGE
Range partitioning partitions segments in the same time chunk based on the value range of the partition dimension.- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-