public final class TTupleProtocol extends TCompactProtocol
| Modifier and Type | Class and Description |
|---|---|
static class |
TTupleProtocol.Factory |
skippedBytes, trans_| Constructor and Description |
|---|
TTupleProtocol(TTransport transport) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.BitSet |
fromByteArray(byte[] bytes)
Returns a bitset containing the values in bytes.
|
java.lang.Class<? extends IScheme> |
getScheme()
Scheme accessor
|
java.util.BitSet |
readBitSet(int i) |
TList |
readListBegin(byte type) |
void |
readListEnd() |
TMap |
readMapBegin(byte keyType,
byte valTyep) |
void |
readMapEnd() |
TSet |
readSetBegin(byte type) |
void |
readSetEnd() |
static byte[] |
toByteArray(java.util.BitSet bits,
int vectorWidth)
Returns a byte array of at least length 1.
|
void |
writeBitSet(java.util.BitSet bs,
int vectorWidth) |
getMinSerializedSize, readBinary, readBool, readByte, readDouble, readFieldBegin, readFieldEnd, readI16, readI32, readI64, readListBegin, readMapBegin, readMessageBegin, readMessageEnd, readSetBegin, readString, readStructBegin, readStructEnd, reset, skipBinary, writeBinary, writeBool, writeByte, writeCollectionBegin, writeDouble, writeFieldBegin, writeFieldEnd, writeFieldStop, writeI16, writeI32, writeI64, writeListBegin, writeListEnd, writeMapBegin, writeMapEnd, writeMessageBegin, writeMessageEnd, writeSetBegin, writeSetEnd, writeString, writeStructBegin, writeStructEndcheckReadBytesAvailable, checkReadBytesAvailable, checkReadBytesAvailable, getTransport, readFieldBeginData, skip, skip, skipBool, skipByte, skipBytes, skipDouble, skipI16, skipI32, skipI64public TTupleProtocol(TTransport transport)
public java.lang.Class<? extends IScheme> getScheme()
TProtocolpublic void writeBitSet(java.util.BitSet bs,
int vectorWidth)
throws TException
TExceptionpublic java.util.BitSet readBitSet(int i)
throws TException
TExceptionpublic static java.util.BitSet fromByteArray(byte[] bytes)
public static byte[] toByteArray(java.util.BitSet bits,
int vectorWidth)
bits - vectorWidth - public TMap readMapBegin(byte keyType, byte valTyep) throws TException
TExceptionpublic TList readListBegin(byte type) throws TException
TExceptionpublic TSet readSetBegin(byte type) throws TException
TExceptionpublic void readMapEnd()
throws TException
readMapEnd in class TCompactProtocolTExceptionpublic void readListEnd()
throws TException
readListEnd in class TCompactProtocolTExceptionpublic void readSetEnd()
throws TException
readSetEnd in class TCompactProtocolTException