Package org.apache.parquet.format.event
Class Consumers.DelegatingFieldConsumer
- java.lang.Object
-
- org.apache.parquet.format.event.Consumers.DelegatingFieldConsumer
-
- All Implemented Interfaces:
FieldConsumer
- Enclosing class:
- Consumers
public static class Consumers.DelegatingFieldConsumer extends Object implements FieldConsumer
Delegates reading the field to TypedConsumers. There is one TypedConsumer per thrift type. useonField(TFieldIdEnum, TypedConsumer)et al. to consume specific thrift fields.- See Also:
Consumers.fieldConsumer()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsumeField(org.apache.thrift.protocol.TProtocol protocol, EventBasedThriftReader reader, short id, byte type)called by the EventBasedThriftReader when reading a field from a StructConsumers.DelegatingFieldConsumeronField(org.apache.thrift.TFieldIdEnum e, TypedConsumer typedConsumer)
-
-
-
Method Detail
-
onField
public Consumers.DelegatingFieldConsumer onField(org.apache.thrift.TFieldIdEnum e, TypedConsumer typedConsumer)
-
consumeField
public void consumeField(org.apache.thrift.protocol.TProtocol protocol, EventBasedThriftReader reader, short id, byte type) throws org.apache.thrift.TExceptionDescription copied from interface:FieldConsumercalled by the EventBasedThriftReader when reading a field from a Struct- Specified by:
consumeFieldin interfaceFieldConsumer- Parameters:
protocol- the underlying protocolreader- the reader to delegate to further calls.id- the id of the fieldtype- the type of the field- Throws:
org.apache.thrift.TException- if any thrift related error occurs during the reading
-
-