Package org.apache.parquet.format
Enum FieldRepetitionType
- java.lang.Object
-
- java.lang.Enum<FieldRepetitionType>
-
- org.apache.parquet.format.FieldRepetitionType
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldRepetitionType>
,org.apache.thrift.TEnum
@Generated(value="Autogenerated by Thrift Compiler (0.13.0)", date="2021-04-07") public enum FieldRepetitionType extends Enum<FieldRepetitionType> implements org.apache.thrift.TEnum
Representation of Schemas
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldRepetitionType
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.int
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.static FieldRepetitionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldRepetitionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REQUIRED
public static final FieldRepetitionType REQUIRED
This field is required (can not be null) and each record has exactly 1 value.
-
OPTIONAL
public static final FieldRepetitionType OPTIONAL
The field is optional (can be null) and each record has 0 or 1 values.
-
REPEATED
public static final FieldRepetitionType REPEATED
The field is repeated and can contain 0 or more values
-
-
Method Detail
-
values
public static FieldRepetitionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FieldRepetitionType c : FieldRepetitionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldRepetitionType valueOf(String name)
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
-
getValue
public int getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.- Specified by:
getValue
in interfaceorg.apache.thrift.TEnum
-
findByValue
public static FieldRepetitionType findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.- Returns:
- null if the value is not found.
-
-