public static class Consumers.DelegatingFieldConsumer extends Object implements FieldConsumer
DelegatingFieldConsumer#onField(TFieldIdEnum, BoolConsumer)
et al. to consume specific thrift fields.Consumers.fieldConsumer()
Modifier and Type | Method and Description |
---|---|
void |
consumeField(org.apache.thrift.protocol.TProtocol protocol,
EventBasedThriftReader reader,
short id,
byte type)
called by the EventBasedThriftReader when reading a field from a Struct
|
Consumers.DelegatingFieldConsumer |
onField(org.apache.thrift.TFieldIdEnum e,
TypedConsumer typedConsumer) |
public Consumers.DelegatingFieldConsumer onField(org.apache.thrift.TFieldIdEnum e, TypedConsumer typedConsumer)
public void consumeField(org.apache.thrift.protocol.TProtocol protocol, EventBasedThriftReader reader, short id, byte type) throws org.apache.thrift.TException
FieldConsumer
consumeField
in interface FieldConsumer
protocol
- the underlying protocolreader
- the reader to delegate to further calls.id
- the id of the fieldtype
- the type of the fieldorg.apache.thrift.TException
Copyright © 2022 The Apache Software Foundation. All rights reserved.