Class AbstractReflectionThriftCodec<T>
java.lang.Object
io.airlift.drift.codec.internal.reflection.AbstractReflectionThriftCodec<T>
- All Implemented Interfaces:
ThriftCodec<T>
- Direct Known Subclasses:
ReflectionThriftStructCodec,ReflectionThriftUnionCodec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SortedMap<Short,ThriftCodec<?>> protected final ThriftStructMetadata -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractReflectionThriftCodec(ThriftCodecManager manager, ThriftStructMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetFieldValue(Object instance, ThriftFieldMetadata field) getType()The Thrift type this codec supports.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.airlift.drift.codec.ThriftCodec
isNull, read, write
-
Field Details
-
metadata
-
fields
-
-
Constructor Details
-
AbstractReflectionThriftCodec
-
-
Method Details
-
getType
Description copied from interface:ThriftCodecThe Thrift type this codec supports. The Thrift type contains the Java generic Type of the codec.- Specified by:
getTypein interfaceThriftCodec<T>
-
getFieldValue
- Throws:
Exception
-