/** * Returns the BinaryNodeTranslation of the Union. * * @param input1 The first input of the union, as a common API operator. * @param input2 The second input of the union, as a common API operator. * @return The common API union operator. */ @Override protected Union<T> translateToDataFlow(Operator<T> input1, Operator<T> input2) { return new Union<T>(input1, input2); } }
Union<T> lastUnion = new Union<T>(new BinaryOperatorInformation<T, T, T>(type, type, type)); throw new IllegalArgumentException("The input may not contain null elements."); lastUnion.setFirstInput(input2[0]); lastUnion.setSecondInput(input1); i = 1; } else { throw new IllegalArgumentException("The input may not contain null elements."); lastUnion.setSecondInput(input2[1]); i = 2; Union<T> tmpUnion = new Union<T>(new BinaryOperatorInformation<T, T, T>(type, type, type)); tmpUnion.setSecondInput(lastUnion); if (input2[i] == null) { throw new IllegalArgumentException("The input may not contain null elements."); tmpUnion.setFirstInput(input2[i]); lastUnion = tmpUnion;
public Union(Operator<T> input1, Operator<T> input2) { this(new BinaryOperatorInformation<T, T, T>(input1.getOperatorInfo().getOutputType(), input1.getOperatorInfo().getOutputType(), input1.getOperatorInfo().getOutputType())); setFirstInput(input1); setSecondInput(input2); } }
Union<T> lastUnion = new Union<T>(new BinaryOperatorInformation<T, T, T>(type, type, type)); throw new IllegalArgumentException("The input may not contain null elements."); lastUnion.setFirstInput(input2[0]); lastUnion.setSecondInput(input1); i = 1; } else { throw new IllegalArgumentException("The input may not contain null elements."); lastUnion.setSecondInput(input2[1]); i = 2; Union<T> tmpUnion = new Union<T>(new BinaryOperatorInformation<T, T, T>(type, type, type)); tmpUnion.setSecondInput(lastUnion); if (input2[i] == null) { throw new IllegalArgumentException("The input may not contain null elements."); tmpUnion.setFirstInput(input2[i]); lastUnion = tmpUnion;
public Union(Operator<T> input1, Operator<T> input2) { this(new BinaryOperatorInformation<T, T, T>(input1.getOperatorInfo().getOutputType(), input1.getOperatorInfo().getOutputType(), input1.getOperatorInfo().getOutputType())); setFirstInput(input1); setSecondInput(input2); } }