public List < TProtocol > amendMissingRequiredFields ( StructType recordThriftType ) throws TException { Iterator < TProtocol > protocolIter = rootEvents . iterator ( ) ; checkStruct ( protocolIter , recordThriftType ) ; return fixedEvents ; }
Given a thrift definition protocols events it checks all the required fields and create default value if a required field is missing