thrift.protocol.base

Defines the basic interface for a Thrift protocol and associated exception types.

Most parts of the protocol API are typically not used in client code, as the actual serialization code is generated by thrift.codegen.* – the only interesting thing usually is that there are protocols which can be created from transports and passed around.

Members

Classes

TApplicationException
class TApplicationException

Application-level exception.

TProtocolException
class TProtocolException

A protocol-level exception.

Enums

TMessageType
enum TMessageType

Types of Thrift RPC messages.

TType
enum TType

The field types Thrift protocols support.

Functions

skip
void skip(Protocol prot, TType type)

Skips a field of the given type on the protocol.

Interfaces

TProtocol
interface TProtocol

Interface for a Thrift protocol implementation. Essentially, it defines a way of reading and writing all the base types, plus a mechanism for writing out structs with indexed fields.

TProtocolFactory
interface TProtocolFactory

Creates a protocol operating on a given transport.

Structs

TField
struct TField
TList
struct TList
TMap
struct TMap
TMessage
struct TMessage
TSet
struct TSet
TStruct
struct TStruct

Descriptions of Thrift entities.

Templates

isTProtocol
template isTProtocol(T)

true if T is a TProtocol.

Meta