Package io.airlift.drift.codec.metadata
Class ThriftType
java.lang.Object
io.airlift.drift.codec.metadata.ThriftType
ThriftType contains all metadata necessary for converting the java type to and from Thrift.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReferencestatic final ThriftTypestatic final ThriftTypeReference -
Constructor Summary
ConstructorsConstructorDescriptionThriftType(ThriftType uncoercedType, Type javaType) ThriftType(ThriftType uncoercedType, Type javaType, Object nullValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic ThriftTypearray(ThriftType valueType) static ThriftTypearray(ThriftTypeReference valueTypeReference) static ThriftTypeenumType(ThriftEnumMetadata<?> enumMetadata) booleaninthashCode()booleanstatic <E> ThriftTypelist(ThriftType valueType) static <E> ThriftTypelist(ThriftTypeReference valueTypeReference) static <K,V> ThriftType map(ThriftTypeReference keyTypeReference, ThriftTypeReference valueTypeReference) static <K,V> ThriftType map(ThriftType keyType, ThriftType valueType) static ThriftTypeoptional(ThriftType valueType) static <T> ThriftTypeoptional(ThriftTypeReference valueTypeReference) static <E> ThriftTypeset(ThriftType valueType) static <E> ThriftTypeset(ThriftTypeReference valueTypeReference) static ThriftTypestruct(ThriftStructMetadata structMetadata) toString()
-
Field Details
-
BOOL
-
BYTE
-
DOUBLE
-
I16
-
I32
-
I64
-
STRING
-
BINARY
-
VOID
-
BOOL_REF
-
BYTE_REF
-
DOUBLE_REF
-
I16_REF
-
I32_REF
-
I64_REF
-
STRING_REF
-
BINARY_REF
-
VOID_REF
-
-
Constructor Details
-
ThriftType
-
ThriftType
-
-
Method Details
-
struct
-
map
-
map
public static <K,V> ThriftType map(ThriftTypeReference keyTypeReference, ThriftTypeReference valueTypeReference) -
set
-
set
-
list
-
list
-
array
-
array
-
optional
-
optional
-
enumType
-
getJavaType
-
getProtocolType
-
getKeyTypeReference
-
getValueTypeReference
-
getStructMetadata
-
getEnumMetadata
-
isCoerced
public boolean isCoerced() -
getNullValue
-
coerceTo
-
getUncoercedType
-
equals
-
hashCode
public int hashCode() -
toString
-