@Deprecated public final class EventBasedThriftReader extends Object
Constructor and Description |
---|
EventBasedThriftReader(org.apache.thrift.protocol.TProtocol protocol)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
readListContent(TypedConsumer.ListConsumer eventConsumer,
org.apache.thrift.protocol.TList tList)
Deprecated.
reads the list content (elements) from the underlying protocol and passes the events to the list event consumer
|
void |
readMapContent(TypedConsumer.MapConsumer eventConsumer,
org.apache.thrift.protocol.TMap tMap)
Deprecated.
reads the map content (key values) from the underlying protocol and passes the events to the map event consumer
|
void |
readMapEntry(byte keyType,
TypedConsumer keyConsumer,
byte valueType,
TypedConsumer valueConsumer)
Deprecated.
reads a key-value pair
|
void |
readSetContent(TypedConsumer.SetConsumer eventConsumer,
org.apache.thrift.protocol.TSet tSet)
Deprecated.
reads the set content (elements) from the underlying protocol and passes the events to the set event consumer
|
void |
readStruct(FieldConsumer c)
Deprecated.
reads a Struct from the underlying protocol and passes the field events to the FieldConsumer
|
void |
readStructContent(FieldConsumer c)
Deprecated.
reads the content of a struct (fields) from the underlying protocol and passes the events to c
|
public EventBasedThriftReader(org.apache.thrift.protocol.TProtocol protocol)
protocol
- the protocol to read frompublic void readStruct(FieldConsumer c) throws org.apache.thrift.TException
c
- the field consumerorg.apache.thrift.TException
public void readStructContent(FieldConsumer c) throws org.apache.thrift.TException
c
- the field consumerorg.apache.thrift.TException
public void readSetContent(TypedConsumer.SetConsumer eventConsumer, org.apache.thrift.protocol.TSet tSet) throws org.apache.thrift.TException
eventConsumer
- the consumertSet
- the set descriptororg.apache.thrift.TException
public void readMapContent(TypedConsumer.MapConsumer eventConsumer, org.apache.thrift.protocol.TMap tMap) throws org.apache.thrift.TException
eventConsumer
- the consumertMap
- the map descriptororg.apache.thrift.TException
public void readMapEntry(byte keyType, TypedConsumer keyConsumer, byte valueType, TypedConsumer valueConsumer) throws org.apache.thrift.TException
keyType
- the type of the keykeyConsumer
- the consumer for the keyvalueType
- the type of the valuevalueConsumer
- the consumer for the valueorg.apache.thrift.TException
public void readListContent(TypedConsumer.ListConsumer eventConsumer, org.apache.thrift.protocol.TList tList) throws org.apache.thrift.TException
eventConsumer
- the consumertList
- the list descriptororg.apache.thrift.TException
Copyright © 2021 The Apache Software Foundation. All rights reserved.