@Generated(value="Autogenerated by Thrift Compiler (0.14.0)", date="2021-12-23") public enum FieldRepetitionType extends Enum<FieldRepetitionType> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
OPTIONAL
The field is optional (can be null) and each record has 0 or 1 values.
|
REPEATED
The field is repeated and can contain 0 or more values
|
REQUIRED
This field is required (can not be null) and each record has exactly 1 value.
|
Modifier and Type | Method and 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.
|
public static final FieldRepetitionType REQUIRED
public static final FieldRepetitionType OPTIONAL
public static final FieldRepetitionType REPEATED
public static FieldRepetitionType[] values()
for (FieldRepetitionType c : FieldRepetitionType.values()) System.out.println(c);
public static FieldRepetitionType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface org.apache.thrift.TEnum
public static FieldRepetitionType findByValue(int value)
Copyright © 2021 The Apache Software Foundation. All rights reserved.