Class BooleanThriftCodec
java.lang.Object
io.airlift.drift.codec.internal.builtin.BooleanThriftCodec
- All Implemented Interfaces:
ThriftCodec<Boolean>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()The Thrift type this codec supports.read(TProtocolReader protocol) Reads a value from supplied Thrift protocol reader.voidwrite(Boolean value, TProtocolWriter protocol) Writes a value to the supplied Thrift protocol writer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.airlift.drift.codec.ThriftCodec
isNull
-
Constructor Details
-
BooleanThriftCodec
public BooleanThriftCodec()
-
-
Method Details
-
getType
Description copied from interface:ThriftCodecThe Thrift type this codec supports. The Thrift type contains the Java generic Type of the codec.- Specified by:
getTypein interfaceThriftCodec<Boolean>
-
read
Description copied from interface:ThriftCodecReads a value from supplied Thrift protocol reader.- Specified by:
readin interfaceThriftCodec<Boolean>- Parameters:
protocol- the protocol to read from- Returns:
- the value; not null
- Throws:
Exception- if any problems occurred when reading or coercing the value
-
write
Description copied from interface:ThriftCodecWrites a value to the supplied Thrift protocol writer.- Specified by:
writein interfaceThriftCodec<Boolean>- Parameters:
value- the value to write; not nullprotocol- the protocol to write to- Throws:
Exception- if any problems occurred when writing or coercing the value
-