public class Cartesian extends Object
PTable or PCollection
instances.| Constructor and Description |
|---|
Cartesian() |
| Modifier and Type | Method and Description |
|---|---|
static <U,V> PCollection<Pair<U,V>> |
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 <U,V> PCollection<Pair<U,V>> |
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 <K1,K2,U,V> |
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 <K1,K2,U,V> |
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). |
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.Copyright © 2015 The Apache Software Foundation. All Rights Reserved.