*
* @param input Schema of the input
* @return Schema of the output
*/
public Schema outputSchema(Schema input) {
OutputSchema schema = this.getClass().getAnnotation(OutputSchema.class);
try {
return (schema == null) ? null : Utils.getSchemaFromString(schema.value());
} catch (ParserException e) {
throw new RuntimeException(e);
}
}