public enum ConvertedType extends Enum<ConvertedType> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
DECIMAL
A decimal value.
|
ENUM
an enum is converted into a binary field
|
LIST
a list is converted into an optional field containing a repeated field for its
values
|
MAP
a map is converted as an optional field containing a repeated key/value pair
|
MAP_KEY_VALUE
a key/value pair is converted into a group of two fields
|
UTF8
a BYTE_ARRAY actually contains UTF8 encoded chars
|
Modifier and Type | Method and Description |
---|---|
static ConvertedType |
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 ConvertedType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConvertedType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConvertedType UTF8
public static final ConvertedType MAP
public static final ConvertedType MAP_KEY_VALUE
public static final ConvertedType LIST
public static final ConvertedType ENUM
public static final ConvertedType DECIMAL
public static ConvertedType[] values()
for (ConvertedType c : ConvertedType.values()) System.out.println(c);
public static ConvertedType 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 ConvertedType findByValue(int value)
Copyright © 2015. All rights reserved.