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