Example usage for Java org.apache.thrift.protocol TTupleProtocol fields, constructors, methods, implement or subclass
The text is from its open source code.
ByteBuffer | readBinary() Read a byte[] from the wire. |
BitSet | readBitSet(int i) |
boolean | readBool() Read a boolean off the wire. |
byte | readByte() Read a single byte off the wire. |
double | readDouble() No magic here - just read a double off the wire. |
short | readI16() Read an i16 from the wire as a zigzag varint. |
int | readI32() Read an i32 from the wire as a zigzag varint. |
long | readI64() Read an i64 from the wire as a zigzag varint. |
void | readMapEnd() |
TMessage | readMessageBegin() Read a message header. |
void | readMessageEnd() |
String | readString() Reads a byte[] (via readBinary), and then UTF-8 decodes it. |
void | writeBinary(ByteBuffer bin) Write a byte array, using a varint for the size. |
void | writeBitSet(BitSet bs, int vectorWidth) |
void | writeBool(boolean b) Write a boolean value. |
void | writeByte(byte b) Write a byte. |
void | writeDouble(double dub) Write a double to the wire as 8 bytes. |
void | writeI16(short i16) Write an I16 as a zigzag varint. |
void | writeI32(int i32) Write an i32 as a zigzag varint. |
void | writeI64(long i64) Write an i64 as a zigzag varint. |
void | writeMapEnd() |
void | writeMessageBegin(TMessage message) Write a message header to the wire. |
void | writeMessageEnd() |
void | writeString(String str) Write a string to the wire with a varint size preceding. |