Class ProtocolEventsAmender
- java.lang.Object
-
- org.apache.parquet.thrift.projection.amend.ProtocolEventsAmender
-
public class ProtocolEventsAmender extends Object
fill in default value for required fields in TProtocols after projection is specified.
-
-
Constructor Summary
Constructors Constructor Description ProtocolEventsAmender(List<org.apache.thrift.protocol.TProtocol> rootEvents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.thrift.protocol.TProtocol>
amendMissingRequiredFields(ThriftType.StructType recordThriftType)
Given a thrift definition, protocols events, it checks all the required fields, and create default value if a required field is missing
-
-
-
Constructor Detail
-
ProtocolEventsAmender
public ProtocolEventsAmender(List<org.apache.thrift.protocol.TProtocol> rootEvents)
-
-
Method Detail
-
amendMissingRequiredFields
public List<org.apache.thrift.protocol.TProtocol> amendMissingRequiredFields(ThriftType.StructType recordThriftType) throws org.apache.thrift.TException
Given a thrift definition, protocols events, it checks all the required fields, and create default value if a required field is missing- Parameters:
recordThriftType
- the Thrift Struct definition for events- Returns:
- a list of events
- Throws:
org.apache.thrift.TException
- if there is an error while amending events
-
-