@Override public void addForwardedField2(int sourceField, int destinationField) { if (this.nonForwardedFields2 == null) { super.addForwardedField2(sourceField, destinationField); } else { throw new UnsupportedOperationException("When defining fields as implicitly constant for an input" + "(such as through the ConstantFieldsSecondExcept annotation), you cannot manually add forwarded fields."); } }
@Override public void addForwardedField2(int sourceField, FieldSet destinationFields) { if (this.nonForwardedFields2 == null) { super.addForwardedField2(sourceField, destinationFields); } else { throw new UnsupportedOperationException("When defining fields as implicitly constant for an input" + "(such as through the ConstantFieldsSecondExcept annotation), you cannot manually add forwarded fields."); } }
@Override public void setForwardedField2(int sourceField, FieldSet destinationFields) { if (this.nonForwardedFields2 == null) { super.addForwardedField2(sourceField, destinationFields); } else { throw new UnsupportedOperationException("When defining fields as implicitly constant for an input" + "(such as through the ConstantFieldsSecondExcept annotation), you cannot manually add forwarded fields."); } } }
private static void parseConstantFieldsSecondExcept(String[] cfse, DualInputSemanticProperties dm, TypeInformation<?> inType, TypeInformation<?> outType) { if (cfse == null) { return; } for (String str : cfse) { if (str == null) { continue; } FieldSet fs = readFieldSetFromString(str, inType, outType); for (int i = 0; i < outType.getArity(); i++) { if (!fs.contains(i)) { dm.addForwardedField2(i, i); } } } }
((DualInputSemanticProperties) sp).addForwardedField1(i, i); } else if (input == 1) { ((DualInputSemanticProperties) sp).addForwardedField2(i, i); ((DualInputSemanticProperties) sp).addForwardedField1(sourceField, i); } else if (input == 1) { ((DualInputSemanticProperties) sp).addForwardedField2(sourceField, i); ((DualInputSemanticProperties) sp).addForwardedField1(sourceField, fs); } else if (input == 1) { ((DualInputSemanticProperties) sp).addForwardedField2(sourceField, fs); ((DualInputSemanticProperties) sp).addForwardedField1(i, i); } else if (input == 1) { ((DualInputSemanticProperties) sp).addForwardedField2(i, i);