@Override public PTable<K, V> combineValues(CombineFn<K, V> combineFn, CombineFn<K, V> reduceFn) { return pipeline .getFactory() .createDoTable( "combine", getChainingCollection(), combineFn, reduceFn, parent.getPTableType()); }
@Override public PTable<K, V> combineValues(Aggregator<V> combineAgg, Aggregator<V> reduceAgg) { return combineValues( Aggregators.<K, V>toCombineFn(combineAgg, parent.getValueType()), Aggregators.<K, V>toCombineFn(reduceAgg, parent.getValueType())); }
@Override protected long getSizeInternal() { return parent.getSizeInternal(); }
protected BaseGroupedTable(PTableBase<K, V> parent, GroupingOptions groupingOptions) { super("GBK", parent.getPipeline()); this.parent = parent; this.groupingOptions = groupingOptions; this.ptype = parent.getPTableType().getGroupedTableType(); }
@Override public long getLastModifiedAt() { return parent.getLastModifiedAt(); }
@Override public PTable<K, V> ungroup() { return parallelDo("ungroup", new Ungroup<K, V>(), parent.getPTableType()); }