public enum ThriftProtocolType extends java.lang.Enum<ThriftProtocolType>
Enum Constant and Description |
---|
BINARY |
BOOL |
BYTE |
DOUBLE |
ENUM |
I16 |
I32 |
I64 |
LIST |
MAP |
SET |
STRING |
STRUCT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
byte |
getType() |
static ThriftProtocolType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThriftProtocolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThriftProtocolType UNKNOWN
public static final ThriftProtocolType BOOL
public static final ThriftProtocolType BYTE
public static final ThriftProtocolType DOUBLE
public static final ThriftProtocolType I16
public static final ThriftProtocolType I32
public static final ThriftProtocolType I64
public static final ThriftProtocolType STRING
public static final ThriftProtocolType STRUCT
public static final ThriftProtocolType MAP
public static final ThriftProtocolType SET
public static final ThriftProtocolType LIST
public static final ThriftProtocolType ENUM
public static final ThriftProtocolType BINARY
public static ThriftProtocolType[] values()
for (ThriftProtocolType c : ThriftProtocolType.values()) System.out.println(c);
public static ThriftProtocolType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic byte getType()
Copyright © 2019. All rights reserved.