Package org.apache.parquet.schema
Enum Type.Repetition
- All Implemented Interfaces:
Serializable,Comparable<Type.Repetition>
- Enclosing class:
- Type
Constraint on the repetition of a field
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanstatic Type.RepetitionleastRestrictive(Type.Repetition... repetitions) static Type.RepetitionReturns the enum constant of this type with the specified name.static Type.Repetition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
exactly 1 -
OPTIONAL
0 or 1 -
REPEATED
0 or more
-
-
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
-
isMoreRestrictiveThan
- Parameters:
other- a repetition to test- Returns:
- true if it is strictly more restrictive than other
-
leastRestrictive
- Parameters:
repetitions- repetitions to traverse- Returns:
- the least restrictive repetition of all repetitions provided
-