Java org.apache.thrift.protocol TTupleProtocol fields, constructors, methods, implement or subclass

Example usage for Java org.apache.thrift.protocol TTupleProtocol fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.thrift.protocol TTupleProtocol.

The text is from its open source code.

Constructor

Method

ByteBufferreadBinary()
Read a byte[] from the wire.
BitSetreadBitSet(int i)
booleanreadBool()
Read a boolean off the wire.
bytereadByte()
Read a single byte off the wire.
doublereadDouble()
No magic here - just read a double off the wire.
shortreadI16()
Read an i16 from the wire as a zigzag varint.
intreadI32()
Read an i32 from the wire as a zigzag varint.
longreadI64()
Read an i64 from the wire as a zigzag varint.
voidreadMapEnd()
TMessagereadMessageBegin()
Read a message header.
voidreadMessageEnd()
StringreadString()
Reads a byte[] (via readBinary), and then UTF-8 decodes it.
voidwriteBinary(ByteBuffer bin)
Write a byte array, using a varint for the size.
voidwriteBitSet(BitSet bs, int vectorWidth)
voidwriteBool(boolean b)
Write a boolean value.
voidwriteByte(byte b)
Write a byte.
voidwriteDouble(double dub)
Write a double to the wire as 8 bytes.
voidwriteI16(short i16)
Write an I16 as a zigzag varint.
voidwriteI32(int i32)
Write an i32 as a zigzag varint.
voidwriteI64(long i64)
Write an i64 as a zigzag varint.
voidwriteMapEnd()
voidwriteMessageBegin(TMessage message)
Write a message header to the wire.
voidwriteMessageEnd()
voidwriteString(String str)
Write a string to the wire with a varint size preceding.