/** * Sets the order in which the sink must write its data. For any value other then <tt>NONE</tt>, * this will cause the system to perform a global sort, or try to reuse an order from a * previous operation. * * @param globalOrder The order to write the data in. * @param distribution The distribution to use for the range partitioning. */ public void setGlobalOrder(Ordering globalOrder, DataDistribution distribution) { this.localOrdering = globalOrder; setRangePartitioned(globalOrder, distribution); }
/** * Returns the initial workset input, or null, if none is set. * * @return The iteration's workset input. */ public Operator<WT> getInitialWorkset() { return getSecondInput(); }
/** * Traverses the job depth first from all data sinks on towards the sources. * * @see Visitable#accept(Visitor) */ @Override public void accept(Visitor<Operator<?>> visitor) { for (GenericDataSinkBase<?> sink : this.sinks) { sink.accept(visitor); } }
@Override public void collect(IT record) { agg.aggregate(1); }
/** * Gets the order of elements within a group for the first input. * If no such order has been set, this method returns null. * * @return The group order for the first input. */ public Ordering getGroupOrderForInputOne() { return getGroupOrder(0); }
/** * Sets the order of the elements within a group for the first input. * * @param order The order for the elements in a group. */ public void setGroupOrderForInputOne(Ordering order) { setGroupOrder(0, order); }
/** * Sets the given input as the initial solution set. * * @param input The contract to set the initial solution set. */ public void setInitialSolutionSet(Operator<ST> input) { setFirstInput(input); }
/** * Sets the given input as the initial workset. * * @param input The contract to set as the initial workset. */ public void setInitialWorkset(Operator<WT> input) { setSecondInput(input); }
/** * Returns the initial solution set input, or null, if none is set. * * @return The iteration's initial solution set input. */ public Operator<ST> getInitialSolutionSet() { return getFirstInput(); }
@Override public void map(X in, Collector<Nothing> out) { aggregator.aggregate(1L); } }
/** * Sets the order in which the sink must write its data. For any value other then <tt>NONE</tt>, * this will cause the system to perform a global sort, or try to reuse an order from a * previous operation. * * @param globalOrder The order to write the data in. */ public void setGlobalOrder(Ordering globalOrder) { this.localOrdering = globalOrder; setRangePartitioned(globalOrder); }
/** * Gets the order of elements within a group for the second input. * If no such order has been set, this method returns null. * * @return The group order for the second input. */ public Ordering getGroupOrderForInputTwo() { return getGroupOrder(1); }
/** * Sets the order of the elements within a group for the first input. * * @param order The order for the elements in a group. */ public void setGroupOrderForInputOne(Ordering order) { setGroupOrder(0, order); }
/** * Returns the initial workset input, or null, if none is set. * * @return The iteration's workset input. */ public Operator<WT> getInitialWorkset() { return getSecondInput(); }
@Override public void map(X in, Collector<Nothing> out) { aggregator.aggregate(1L); } }
/** * Sets the order in which the sink must write its data. For any value other then <tt>NONE</tt>, * this will cause the system to perform a global sort, or try to reuse an order from a * previous operation. * * @param globalOrder The order to write the data in. */ public void setGlobalOrder(Ordering globalOrder) { this.localOrdering = globalOrder; setRangePartitioned(globalOrder); }
/** * Gets the order of elements within a group for the first input. * If no such order has been set, this method returns null. * * @return The group order for the first input. */ public Ordering getGroupOrderForInputOne() { return getGroupOrder(0); }
/** * Sets the order of the elements within a group for the second input. * * @param order The order for the elements in a group. */ public void setGroupOrderForInputTwo(Ordering order) { setGroupOrder(1, order); }
/** * Sets the order in which the sink must write its data. For any value other then <tt>NONE</tt>, * this will cause the system to perform a global sort, or try to reuse an order from a * previous operation. * * @param globalOrder The order to write the data in. * @param distribution The distribution to use for the range partitioning. */ public void setGlobalOrder(Ordering globalOrder, DataDistribution distribution) { this.localOrdering = globalOrder; setRangePartitioned(globalOrder, distribution); }
/** * Gets the order of elements within a group for the second input. * If no such order has been set, this method returns null. * * @return The group order for the second input. */ public Ordering getGroupOrderForInputTwo() { return getGroupOrder(1); }