public class Cogroup extends Object
| Constructor and Description | 
|---|
| Cogroup() | 
| Modifier and Type | Method and Description | 
|---|---|
| static <K,U,V> PTable<K,TupleN> | cogroup(int numReducers,
       PTable<K,?> first,
       PTable<K,?>... rest)Co-groups an arbitrary number of  PTablearguments with a user-specified degree of parallelism
 (a.k.a, number of reducers.) The largest table should come last in the ordering. | 
| static <K,U,V> PTable<K,Pair<Collection<U>,Collection<V>>> | cogroup(int numReducers,
       PTable<K,U> left,
       PTable<K,V> right)Co-groups the two  PTablearguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.) | 
| static <K,V1,V2,V3> | cogroup(int numReducers,
       PTable<K,V1> first,
       PTable<K,V2> second,
       PTable<K,V3> third)Co-groups the three  PTablearguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.) | 
| static <K,V1,V2,V3,V4> | cogroup(int numReducers,
       PTable<K,V1> first,
       PTable<K,V2> second,
       PTable<K,V3> third,
       PTable<K,V4> fourth)Co-groups the three  PTablearguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.) | 
| static <K> PTable<K,TupleN> | cogroup(PTable<K,?> first,
       PTable<K,?>... rest)Co-groups an arbitrary number of  PTablearguments. | 
| static <K,U,V> PTable<K,Pair<Collection<U>,Collection<V>>> | cogroup(PTable<K,U> left,
       PTable<K,V> right)Co-groups the two  PTablearguments. | 
| static <K,V1,V2,V3> | cogroup(PTable<K,V1> first,
       PTable<K,V2> second,
       PTable<K,V3> third)Co-groups the three  PTablearguments. | 
| static <K,V1,V2,V3,V4> | cogroup(PTable<K,V1> first,
       PTable<K,V2> second,
       PTable<K,V3> third,
       PTable<K,V4> fourth)Co-groups the three  PTablearguments. | 
public static <K,U,V> PTable<K,Pair<Collection<U>,Collection<V>>> cogroup(PTable<K,U> left, PTable<K,V> right)
PTable arguments.left - The left (smaller) PTableright - The right (larger) PTablePTable representing the co-grouped tablespublic static <K,U,V> PTable<K,Pair<Collection<U>,Collection<V>>> cogroup(int numReducers, PTable<K,U> left, PTable<K,V> right)
PTable arguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.)numReducers - The number of reducers to useleft - The left (smaller) PTableright - The right (larger) PTablePTable representing the co-grouped tablespublic static <K,V1,V2,V3> PTable<K,Tuple3.Collect<V1,V2,V3>> cogroup(PTable<K,V1> first, PTable<K,V2> second, PTable<K,V3> third)
PTable arguments.first - The smallest PTablesecond - The second-smallest PTablethird - The largest PTablePTable representing the co-grouped tablespublic static <K,V1,V2,V3> PTable<K,Tuple3.Collect<V1,V2,V3>> cogroup(int numReducers, PTable<K,V1> first, PTable<K,V2> second, PTable<K,V3> third)
PTable arguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.)numReducers - The number of reducers to usefirst - The smallest PTablesecond - The second-smallest PTablethird - The largest PTablePTable representing the co-grouped tablespublic static <K,V1,V2,V3,V4> PTable<K,Tuple4.Collect<V1,V2,V3,V4>> cogroup(PTable<K,V1> first, PTable<K,V2> second, PTable<K,V3> third, PTable<K,V4> fourth)
PTable arguments.first - The smallest PTablesecond - The second-smallest PTablethird - The largest PTablePTable representing the co-grouped tablespublic static <K,V1,V2,V3,V4> PTable<K,Tuple4.Collect<V1,V2,V3,V4>> cogroup(int numReducers, PTable<K,V1> first, PTable<K,V2> second, PTable<K,V3> third, PTable<K,V4> fourth)
PTable arguments with a user-specified degree of parallelism (a.k.a, number of
 reducers.)numReducers - The number of reducers to usefirst - The smallest PTablesecond - The second-smallest PTablethird - The largest PTablePTable representing the co-grouped tablespublic static <K> PTable<K,TupleN> cogroup(PTable<K,?> first, PTable<K,?>... rest)
PTable arguments. The largest table should
 come last in the ordering.first - The first (smallest) PTable to co-grouprest - The other (larger) PTables to co-groupPTable representing the co-grouped tablespublic static <K,U,V> PTable<K,TupleN> cogroup(int numReducers, PTable<K,?> first, PTable<K,?>... rest)
PTable arguments with a user-specified degree of parallelism
 (a.k.a, number of reducers.) The largest table should come last in the ordering.numReducers - The number of reducers to usefirst - The first (smallest) PTable to co-grouprest - The other (larger) PTables to co-groupPTable representing the co-grouped tablesCopyright © 2017 The Apache Software Foundation. All rights reserved.