/** * Takes a list of operators and creates a cascade of unions of this inputs, if needed. * If not needed (there was only one operator in the list), then that operator is returned. * * @param operators The operators. * @return The single operator or a cascade of unions of the operators. */ public static <T> Operator<T> createUnionCascade(Operator<T>... operators) { return createUnionCascade(null, operators); }
/** * Takes a list of operators and creates a cascade of unions of this inputs, if needed. * If not needed (there was only one operator in the list), then that operator is returned. * * @param operators The operators. * @return The single operator or a cascade of unions of the operators. */ public static <T> Operator<T> createUnionCascade(Operator<T>... operators) { return createUnionCascade(null, operators); }
/** * Sets the second input to the union of the given operators. * * @param inputs The operator(s) that form the second input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void setSecondInput(Operator<IN2>... inputs) { this.input2 = Operator.createUnionCascade(inputs); }
/** * Adds to the input the union of the given operators. * * @param input The operator(s) that form the input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void addInput(Operator<IN>... input) { this.input = Operator.createUnionCascade(this.input, input); }
/** * Sets the second input to the union of the given operators. * * @param inputs The operator(s) that form the second inputs. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void setSecondInputs(List<Operator<IN2>> inputs) { this.input2 = Operator.createUnionCascade(inputs); }
/** * Add to the second input the union of the given operators. * * @param input The operator(s) to be unioned with the second input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void addSecondInput(Operator<IN2>... input) { this.input2 = Operator.createUnionCascade(this.input2, input); }
/** * Sets the first input to the union of the given operators. * * @param inputs The operator(s) that form the first input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void setFirstInput(Operator<IN1>... inputs) { this.input1 = Operator.createUnionCascade(inputs); }
/** * Sets the second input to the union of the given operators. * * @param inputs The operator(s) that form the second input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void setSecondInput(Operator<IN2>... inputs) { this.input2 = Operator.createUnionCascade(inputs); }
/** * Sets the first input to the union of the given operators. * * @param inputs The operator(s) that form the first inputs. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated public void setFirstInputs(List<Operator<IN1>> inputs) { this.input1 = Operator.createUnionCascade(inputs); }
/** * Sets the input to the union of the given operators. * * @param inputs The operator(s) that form the input. * @deprecated This method will be removed in future versions. Use the {@link eu.stratosphere.api.common.operators.Union} operator instead. */ @Deprecated public void setInputs(List<Operator<IN>> inputs) { Preconditions.checkNotNull(inputs, "The inputs may not be null."); this.input = Operator.createUnionCascade(inputs); }
/** * Sets the input to the union of the given operators. * * @param inputs The operator(s) that form the input. * @deprecated This method will be removed in future versions. Use the {@link eu.stratosphere.api.common.operators.Union} operator instead. */ @Deprecated public void setInputs(List<Operator<Record>> inputs) { Preconditions.checkNotNull(inputs, "The inputs may not be null."); this.input = Operator.createUnionCascade(inputs); }
/** * Adds to the input the union of the given operators. * * @param inputs The operator(s) to be unioned with the input. * @deprecated This method will be removed in future versions. Use the {@link eu.stratosphere.api.common.operators.Union} operator instead. */ @Deprecated public void addInput(Operator<IN>... inputs) { Preconditions.checkNotNull(inputs, "The input may not be null."); this.input = Operator.createUnionCascade(this.input, inputs); }
/** * Adds to the input the union of the given operators. * * @param inputs The operator(s) to be unioned with the input. * @deprecated This method will be removed in future versions. Use the {@link eu.stratosphere.api.common.operators.Union} operator instead. */ @Deprecated public void addInput(Operator<IN>... inputs) { Preconditions.checkNotNull(inputs, "The input may not be null."); this.input = Operator.createUnionCascade(this.input, inputs); }
/** * Takes a list of operators and creates a cascade of unions of this inputs, if needed. * If not needed (there was only one operator in the list), then that operator is returned. * * @param operators The operators. * @return The single operator or a cascade of unions of the operators. */ @SuppressWarnings("unchecked") public static <T> Operator<T> createUnionCascade(List<? extends Operator<T>> operators) { return createUnionCascade((Operator<T>[]) operators.toArray(new Operator[operators.size()])); }
/** * Adds to the input the union of the given operators. * * @param inputs The operator(s) that form the input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated @SuppressWarnings("unchecked") public void addInput(List<Operator<IN>> inputs) { this.input = Operator.createUnionCascade(this.input, inputs.toArray(new Operator[inputs.size()])); }
/** * Add to the first input the union of the given operators. * * @param inputs The operator(s) to be unioned with the first input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated @SuppressWarnings("unchecked") public void addFirstInputs(List<Operator<IN1>> inputs) { this.input1 = Operator.createUnionCascade(this.input1, inputs.toArray(new Operator[inputs.size()])); }
/** * Add to the second input the union of the given operators. * * @param inputs The operator(s) to be unioned with the second input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated @SuppressWarnings("unchecked") public void addSecondInputs(List<Operator<IN2>> inputs) { this.input2 = Operator.createUnionCascade(this.input2, inputs.toArray(new Operator[inputs.size()])); }
/** * Add to the second input the union of the given operators. * * @param inputs The operator(s) to be unioned with the second input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated @SuppressWarnings("unchecked") public void addSecondInputs(List<Operator<IN2>> inputs) { this.input2 = Operator.createUnionCascade(this.input2, inputs.toArray(new Operator[inputs.size()])); }
/** * Sets the input to the union of the given operators. * * @param inputs The operator(s) that form the input. * @deprecated This method will be removed in future versions. Use the {@link Union} operator instead. */ @Deprecated @SuppressWarnings("unchecked") public void setInputs(List<Operator<IN>> inputs) { this.input = Operator.createUnionCascade(null, inputs.toArray(new Operator[inputs.size()])); }
/** * The private constructor that only gets invoked from the Builder. * @param builder */ protected MapOperator(Builder builder) { super(builder.udf, OperatorInfoHelper.unary(), builder.name); if (builder.inputs != null && !builder.inputs.isEmpty()) { setInput(Operator.createUnionCascade(builder.inputs)); } setBroadcastVariables(builder.broadcastInputs); setSemanticProperties(FunctionAnnotation.readSingleConstantAnnotations(builder.udf)); }