@Override public boolean isFieldConstant(int input, int fieldNumber) { if (input != 0) { throw new IndexOutOfBoundsException(); } SingleInputOperator<?, ?, ?> c = getPactContract(); SingleInputSemanticProperties semanticProperties = c.getSemanticProperties(); if (semanticProperties != null) { FieldSet fs; if ((fs = semanticProperties.getForwardedField(fieldNumber)) != null) { return fs.contains(fieldNumber); } } return false; }
@Override public boolean isFieldConstant(int input, int fieldNumber) { if (input != 0) { throw new IndexOutOfBoundsException(); } SingleInputOperator<?, ?, ?> c = getPactContract(); SingleInputSemanticProperties semanticProperties = c.getSemanticProperties(); if (semanticProperties != null) { FieldSet fs; if ((fs = semanticProperties.getForwardedField(fieldNumber)) != null) { return fs.contains(fieldNumber); } } return false; }