@Immutable public class LongArrayThriftCodec extends Object implements ThriftCodec<long[]>
| Constructor and Description |
|---|
LongArrayThriftCodec() |
| Modifier and Type | Method and Description |
|---|---|
ThriftType |
getType()
The Thrift type this codec supports.
|
long[] |
read(org.apache.thrift.protocol.TProtocol protocol)
Reads a value from supplied Thrift protocol reader.
|
void |
write(long[] value,
org.apache.thrift.protocol.TProtocol protocol)
Writes a value to the supplied Thrift protocol writer.
|
public ThriftType getType()
ThriftCodecgetType in interface ThriftCodec<long[]>public long[] read(org.apache.thrift.protocol.TProtocol protocol)
throws Exception
ThriftCodecread in interface ThriftCodec<long[]>protocol - the protocol to read fromException - if any problems occurred when reading or coercing the valuepublic void write(long[] value,
org.apache.thrift.protocol.TProtocol protocol)
throws Exception
ThriftCodecwrite in interface ThriftCodec<long[]>value - the value to write; not nullprotocol - the protocol to write toException - if any problems occurred when writing or coercing the valueCopyright © 2012-2017. All Rights Reserved.