private String generateAvroSchema ( String xmlSchemaSource , String targetPackageName , String targetAvroSchemaName ) throws IOException { log . debug ( "Avro schema {} generation started" , targetAvroSchemaName + AVSC_FILE_EXTENSION ) ; String avroSchemaSource = cob2AvroTranslator . translate ( new StringReader ( xmlSchemaSource ) , targetPackageName , targetAvroSchemaName ) ; if ( log . isDebugEnabled ( ) ) { log . debug ( "Generated Avro Schema: " ) ; log . debug ( avroSchemaSource ) ; } log . debug ( "Avro schema {} generation ended" , targetAvroSchemaName + AVSC_FILE_EXTENSION ) ; return avroSchemaSource ; }
Produce the avro schema .