@Immutable public class OptionalLongThriftCodec extends Object implements ThriftCodec<OptionalLong>
| Constructor and Description |
|---|
OptionalLongThriftCodec() |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
getType()
The Thrift type this codec supports.
|
boolean |
isNull(OptionalLong value)
If the value is effectively null and should not be written.
|
OptionalLong |
read(TProtocolReader protocol)
Reads a value from supplied Thrift protocol reader.
|
void |
write(OptionalLong value,
TProtocolWriter protocol)
Writes a value to the supplied Thrift protocol writer.
|
public ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<OptionalLong>public OptionalLong read(TProtocolReader protocol) throws Exception
ThriftCodecread in interface ThriftCodec<OptionalLong>protocol - the protocol to read fromException - if any problems occurred when reading or coercing the valuepublic void write(OptionalLong value, TProtocolWriter protocol) throws Exception
ThriftCodecwrite in interface ThriftCodec<OptionalLong>value - the value to write; not nullprotocol - the protocol to write toException - if any problems occurred when writing or coercing the valuepublic boolean isNull(OptionalLong value)
ThriftCodecisNull in interface ThriftCodec<OptionalLong>value - the value to testCopyright © 2012–2018. All rights reserved.