public static class Consumers.DelegatingFieldConsumer extends Object implements FieldConsumer
onField(TFieldIdEnum, TypedConsumer) 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
FieldConsumerconsumeField in interface FieldConsumerprotocol - the underlying protocolreader - the reader to delegate to further calls.id - the id of the fieldtype - the type of the fieldorg.apache.thrift.TException - if any thrift related error occurs during the readingCopyright © 2024 The Apache Software Foundation. All rights reserved.