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); } }
/** * Clears the object. */ @Override public void clearProperties() { this.init(); super.clearProperties(); }
@Override public UnaryOperatorInformation<OUT, OUT> getOperatorInfo() { TypeInformation<OUT> previousOut = input.getOperatorInfo().getOutputType(); return new UnaryOperatorInformation<OUT, OUT>(previousOut, previousOut); } }
/** * @param index * @param type * @param order */ public Ordering(int index, Class<? extends Key<?>> type, Order order) { appendOrdering(index, type, order); }
/** * Clears the object. */ @Override public void clearProperties() { this.init(); super.clearProperties(); }
/** * 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); }
@Override public float getAvgOutputRecordSize() { float superWidth = super.getAvgOutputRecordSize(); if (superWidth > 0.0f || this.width <= 0.0f) { return superWidth; } else { return this.width; } }
/** * Sets the key order for these global properties. * * @param keyOrder * The key order to set. */ public void setOrdering(Ordering ordering) { this.ordering = ordering; this.groupedFields = ordering.getInvolvedIndexes(); }
/** * Clears the object. */ public void clearProperties() { this.init(); }
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); } }
@Override public UnaryOperatorInformation<OUT, OUT> getOperatorInfo() { TypeInformation<OUT> previousOut = input.getOperatorInfo().getOutputType(); return new UnaryOperatorInformation<OUT, OUT>(previousOut, previousOut); } }
/** * @param index * @param type * @param order */ public Ordering(int index, Class<? extends Key<?>> type, Order order) { appendOrdering(index, type, order); }
/** * Clears the object. */ @Override public void clearProperties() { this.init(); super.clearProperties(); }
/** * Clears the object. */ @Override public void clearProperties() { this.init(); super.clearProperties(); }
/** * 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); }
public void setRangePartitioned(Ordering ordering) { this.partitioning = PartitioningProperty.RANGE_PARTITIONED; this.ordering = ordering; this.partitioningFields = ordering.getInvolvedIndexes(); }
/** * Clears the object. */ public void clearProperties() { this.init(); }
public void setRangePartitioned(Ordering ordering) { this.partitioning = PartitioningProperty.RANGE_PARTITIONED; this.ordering = ordering; this.partitioningFields = ordering.getInvolvedIndexes(); }
/** * Sets the key order for these global properties. * * @param keyOrder * The key order to set. */ public void setOrdering(Ordering ordering) { this.ordering = ordering; this.groupedFields = ordering.getInvolvedIndexes(); }