use of uk.gov.gchq.gaffer.function.annotation.Outputs in project Gaffer by gchq.
the class ConsumerProducerFunction method processOutputAnnotation.
/**
* Retrieves the input record structure from the {@link uk.gov.gchq.gaffer.function.annotation.Inputs} annotation.
*/
private void processOutputAnnotation() {
final Outputs annotation = getClass().getAnnotation(Outputs.class);
if (null == annotation) {
throw new AnnotationFormatError("All consumer producer function classes must have outputs defined using the 'Outputs' annotation on the class." + " Class: " + getClass());
}
outputs = annotation.value();
}
use of uk.gov.gchq.gaffer.function.annotation.Outputs in project Gaffer by gchq.
the class ProducerFunction method processOutputAnnotation.
/**
* Retrieves the input record structure from the {@link uk.gov.gchq.gaffer.function.annotation.Inputs} annotation.
*/
private void processOutputAnnotation() {
final Outputs annotation = getClass().getAnnotation(Outputs.class);
if (null == annotation || null == annotation.value()) {
throw new AnnotationFormatError("All producer function classes must have outputs defined using the 'Outputs' annotation on the class.");
}
outputs = annotation.value();
}
Aggregations