ReadFieldsFirst readfieldSet1 = udfClass.getAnnotation(ReadFieldsFirst.class);
ReadFieldsSecond readfieldSet2 = udfClass.getAnnotation(ReadFieldsSecond.class);
if (notConstantSet1 != null && constantSet1 != null) {
throw new InvalidProgramException("Either " + ConstantFieldsFirst.class.getSimpleName() + " or " +
ConstantFieldsFirstExcept.class.getSimpleName() + " can be annotated to a function, not both.");
}
if (constantSet2 != null && notConstantSet2 != null) {
throw new InvalidProgramException("Either " + ConstantFieldsSecond.class.getSimpleName() + " or " +
ConstantFieldsSecondExcept.class.getSimpleName() + " can be annotated to a function, not both.");
}
Set<Annotation> result = null;