@Immutable public class ReflectionThriftUnionCodec<T> extends AbstractReflectionThriftCodec<T>
fields, metadata| Constructor and Description |
|---|
ReflectionThriftUnionCodec(ThriftCodecManager manager,
ThriftStructMetadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
T |
read(TProtocolReader protocol)
Reads a value from supplied Thrift protocol reader.
|
void |
write(T instance,
TProtocolWriter protocol)
Writes a value to the supplied Thrift protocol writer.
|
getFieldValue, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisNullpublic ReflectionThriftUnionCodec(ThriftCodecManager manager, ThriftStructMetadata metadata)
public T read(TProtocolReader protocol) throws Exception
ThriftCodecprotocol - the protocol to read fromException - if any problems occurred when reading or coercing the valuepublic void write(T instance, TProtocolWriter protocol) throws Exception
ThriftCodecinstance - the value to write; not nullprotocol - the protocol to write toException - if any problems occurred when writing or coercing the valueCopyright © 2012–2024. All rights reserved.