Beispiel #1
0
 @Override
 public PTable<K, V> combineValues(CombineFn<K, V> combineFn, CombineFn<K, V> reduceFn) {
   return pipeline
       .getFactory()
       .createDoTable(
           "combine", getChainingCollection(), combineFn, reduceFn, parent.getPTableType());
 }
Beispiel #2
0
 @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()));
 }
Beispiel #3
0
 @Override
 protected long getSizeInternal() {
   return parent.getSizeInternal();
 }
Beispiel #4
0
 protected BaseGroupedTable(PTableBase<K, V> parent, GroupingOptions groupingOptions) {
   super("GBK", parent.getPipeline());
   this.parent = parent;
   this.groupingOptions = groupingOptions;
   this.ptype = parent.getPTableType().getGroupedTableType();
 }
Beispiel #5
0
 @Override
 public long getLastModifiedAt() {
   return parent.getLastModifiedAt();
 }
Beispiel #6
0
 @Override
 public PTable<K, V> ungroup() {
   return parallelDo("ungroup", new Ungroup<K, V>(), parent.getPTableType());
 }