Enum Class Partitioning.Strategy
java.lang.Object
java.lang.Enum<Partitioning.Strategy>
org.apache.gravitino.dto.rel.partitioning.Partitioning.Strategy
- All Implemented Interfaces:
Serializable
,Comparable<Partitioning.Strategy>
,Constable
- Enclosing interface:
- Partitioning
Represents a partitioning strategy.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe minute partitioning strategy.The day partitioning strategy.The hash partitioning strategy.The hour partitioning strategy.The identity partitioning strategy.The list partitioning strategy.The month partitioning strategy.The range partitioning strategy.The truncate partitioning strategy.The year partitioning strategy. -
Method Summary
Modifier and TypeMethodDescriptionstatic Partitioning.Strategy
Get the partitioning strategy by name.static Partitioning.Strategy
Returns the enum constant of this class with the specified name.static Partitioning.Strategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
The identity partitioning strategy. -
YEAR
The year partitioning strategy. -
MONTH
The month partitioning strategy. -
DAY
The day partitioning strategy. -
HOUR
The hour partitioning strategy. -
BUCKET
The minute partitioning strategy. -
TRUNCATE
The truncate partitioning strategy. -
LIST
The list partitioning strategy. -
RANGE
The range partitioning strategy. -
FUNCTION
The hash partitioning strategy.
-
-
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
-
getByName
Get the partitioning strategy by name.- Parameters:
name
- The name of the partitioning strategy.- Returns:
- The partitioning strategy.
-