Package org.apache.thrift.protocol
Class TTupleProtocol
java.lang.Object
org.apache.thrift.protocol.TProtocol
org.apache.thrift.protocol.TCompactProtocol
org.apache.thrift.protocol.TTupleProtocol
- All Implemented Interfaces:
TReadProtocol,TWriteProtocol
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.thrift.protocol.TProtocol
TProtocol.ReadCallback<T,R>, TProtocol.ReadCollectionCallback<R>, TProtocol.ReadMapEntryCallback<K, V>, TProtocol.WriteCallback<T> -
Field Summary
Fields inherited from class org.apache.thrift.protocol.TProtocol
skippedBytes, trans_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BitSetfromByteArray(byte[] bytes) Returns a bitset containing the values in bytes.Scheme accessorreadBitSet(int i) readListBegin(byte type) voidreadMapBegin(byte keyType, byte valTyep) voidreadSetBegin(byte type) voidstatic byte[]toByteArray(BitSet bits, int vectorWidth) Returns a byte array of at least length 1.voidwriteBitSet(BitSet bs, int vectorWidth) Methods inherited from class org.apache.thrift.protocol.TCompactProtocol
getMinSerializedSize, readBinary, readBool, readByte, readDouble, readFieldBegin, readFieldEnd, readI16, readI32, readI64, readListBegin, readMapBegin, readMessageBegin, readMessageEnd, readSetBegin, readString, readStructBegin, readStructEnd, readUuid, reset, skipBinary, writeBinary, writeBool, writeByte, writeCollectionBegin, writeDouble, writeFieldBegin, writeFieldEnd, writeFieldStop, writeI16, writeI32, writeI64, writeListBegin, writeListEnd, writeMapBegin, writeMapEnd, writeMessageBegin, writeMessageEnd, writeSetBegin, writeSetEnd, writeString, writeStructBegin, writeStructEnd, writeUuidMethods inherited from class org.apache.thrift.protocol.TProtocol
checkReadBytesAvailable, checkReadBytesAvailable, checkReadBytesAvailable, getTransport, readField, readFieldBeginData, readList, readList, readList, readMap, readMap, readMap, readMessage, readSet, readSet, readSet, readStruct, skip, skip, skipBool, skipByte, skipBytes, skipDouble, skipI16, skipI32, skipI64, writeField, writeList, writeMap, writeMessage, writeSet, writeStruct
-
Constructor Details
-
TTupleProtocol
-
-
Method Details
-
getScheme
Description copied from class:TProtocolScheme accessor -
writeBitSet
- Throws:
TException
-
readBitSet
- Throws:
TException
-
fromByteArray
Returns a bitset containing the values in bytes. The byte-ordering must be big-endian. -
toByteArray
Returns a byte array of at least length 1. The most significant bit in the result is guaranteed not to be a 1 (since BitSet does not support sign extension). The byte-ordering of the result is big-endian which means the most significant bit is in element 0. The bit at index 0 of the bit set is assumed to be the least significant bit.- Parameters:
bits- bit setvectorWidth- width of the vector- Returns:
- a byte array of at least length 1
-
readMapBegin
- Throws:
TException
-
readListBegin
- Throws:
TException
-
readSetBegin
- Throws:
TException
-
readMapEnd
- Specified by:
readMapEndin interfaceTReadProtocol- Overrides:
readMapEndin classTCompactProtocol- Throws:
TException
-
readListEnd
- Specified by:
readListEndin interfaceTReadProtocol- Overrides:
readListEndin classTCompactProtocol- Throws:
TException
-
readSetEnd
- Specified by:
readSetEndin interfaceTReadProtocol- Overrides:
readSetEndin classTCompactProtocol- Throws:
TException
-