|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.lib.Cartesian
public class Cartesian
Utilities for Cartesian products of two PTable or PCollection
instances.
| Constructor Summary | |
|---|---|
Cartesian()
|
|
| Method Summary | ||
|---|---|---|
static
|
cross(PCollection<U> left,
PCollection<V> right)
Performs a full cross join on the specified PCollections (using the
same strategy as Pig's CROSS operator). |
|
static
|
cross(PCollection<U> left,
PCollection<V> right,
int parallelism)
Performs a full cross join on the specified PCollections (using the
same strategy as Pig's CROSS operator). |
|
static
|
cross(PTable<K1,U> left,
PTable<K2,V> right)
Performs a full cross join on the specified PTables (using the same
strategy as Pig's CROSS operator). |
|
static
|
cross(PTable<K1,U> left,
PTable<K2,V> right,
int parallelism)
Performs a full cross join on the specified PTables (using the same
strategy as Pig's CROSS operator). |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cartesian()
| Method Detail |
|---|
public static <K1,K2,U,V> PTable<Pair<K1,K2>,Pair<U,V>> cross(PTable<K1,U> left,
PTable<K2,V> right)
PTables (using the same
strategy as Pig's CROSS operator).
K1 - Type of left PTable's keys.K2 - Type of right PTable's keys.U - Type of the first PTable's valuesV - Type of the second PTable's valuesleft - A PTable to perform a cross join on.right - A PTable to perform a cross join on.
public static <K1,K2,U,V> PTable<Pair<K1,K2>,Pair<U,V>> cross(PTable<K1,U> left,
PTable<K2,V> right,
int parallelism)
PTables (using the same
strategy as Pig's CROSS operator).
K1 - Type of left PTable's keys.K2 - Type of right PTable's keys.U - Type of the first PTable's valuesV - Type of the second PTable's valuesleft - A PTable to perform a cross join on.right - A PTable to perform a cross join on.parallelism - The square root of the number of reducers to use. Increasing
parallelism also increases copied data.
public static <U,V> PCollection<Pair<U,V>> cross(PCollection<U> left,
PCollection<V> right)
PCollections (using the
same strategy as Pig's CROSS operator).
U - Type of the first PCollection's valuesV - Type of the second PCollection's valuesleft - A PCollection to perform a cross join on.right - A PCollection to perform a cross join on.
public static <U,V> PCollection<Pair<U,V>> cross(PCollection<U> left,
PCollection<V> right,
int parallelism)
PCollections (using the
same strategy as Pig's CROSS operator).
U - Type of the first PCollection's valuesV - Type of the second PCollection's valuesleft - A PCollection to perform a cross join on.right - A PCollection to perform a cross join on.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||