public MessageType convert ( StructType struct ) { MessageType messageType = ThriftSchemaConvertVisitor . convert ( struct , fieldProjectionFilter , true ) ; fieldProjectionFilter . assertNoUnmatchedPatterns ( ) ; return messageType ; }
struct is assumed to contain valid structOrUnionType metadata when used with this method . This method may throw if structOrUnionType is unknown .