public abstract class AbstractReflectionThriftCodec<T> extends Object implements ThriftCodec<T>
| Modifier and Type | Field and Description |
|---|---|
protected SortedMap<Short,ThriftCodec<?>> |
fields |
protected ThriftStructMetadata |
metadata |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReflectionThriftCodec(ThriftCodecManager manager,
ThriftStructMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getFieldValue(Object instance,
ThriftFieldMetadata field) |
ThriftType |
getType()
The Thrift type this codec supports.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNull, read, writeprotected final ThriftStructMetadata metadata
protected final SortedMap<Short,ThriftCodec<?>> fields
protected AbstractReflectionThriftCodec(ThriftCodecManager manager, ThriftStructMetadata metadata)
public ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<T>protected Object getFieldValue(Object instance, ThriftFieldMetadata field) throws Exception
ExceptionCopyright © 2012–2019. All rights reserved.