/** * Creates a new {@code UnionTransformation} from the given input {@code StreamTransformations}. * * <p>The input {@code StreamTransformations} must all have the same type. * * @param inputs The list of input {@code StreamTransformations} */ public UnionTransformation(List<StreamTransformation<T>> inputs) { super("Union", inputs.get(0).getOutputType(), inputs.get(0).getParallelism()); for (StreamTransformation<T> input: inputs) { if (!input.getOutputType().equals(getOutputType())) { throw new UnsupportedOperationException("Type mismatch in input " + input); } } this.inputs = Lists.newArrayList(inputs); }
/** * Creates a new {@code UnionTransformation} from the given input {@code StreamTransformations}. * * <p>The input {@code StreamTransformations} must all have the same type. * * @param inputs The list of input {@code StreamTransformations} */ public UnionTransformation(List<StreamTransformation<T>> inputs) { super("Union", inputs.get(0).getOutputType(), inputs.get(0).getParallelism()); for (StreamTransformation<T> input: inputs) { if (!input.getOutputType().equals(getOutputType())) { throw new UnsupportedOperationException("Type mismatch in input " + input); } } this.inputs = Lists.newArrayList(inputs); }
/** * Creates a new {@code UnionTransformation} from the given input {@code StreamTransformations}. * * <p>The input {@code StreamTransformations} must all have the same type. * * @param inputs The list of input {@code StreamTransformations} */ public UnionTransformation(List<StreamTransformation<T>> inputs) { super("Union", inputs.get(0).getOutputType(), inputs.get(0).getParallelism()); for (StreamTransformation<T> input: inputs) { if (!input.getOutputType().equals(getOutputType())) { throw new UnsupportedOperationException("Type mismatch in input " + input); } } this.inputs = Lists.newArrayList(inputs); }
/** * Creates a new {@code UnionTransformation} from the given input {@code StreamTransformations}. * * <p>The input {@code StreamTransformations} must all have the same type. * * @param inputs The list of input {@code StreamTransformations} */ public UnionTransformation(List<StreamTransformation<T>> inputs) { super("Union", inputs.get(0).getOutputType(), inputs.get(0).getParallelism()); for (StreamTransformation<T> input: inputs) { if (!input.getOutputType().equals(getOutputType())) { throw new UnsupportedOperationException("Type mismatch in input " + input); } } this.inputs = Lists.newArrayList(inputs); }