Class ProtocolEventsAmender


  • public class ProtocolEventsAmender
    extends Object
    fill in default value for required fields in TProtocols after projection is specified.
    • 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