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
PCollection s (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
PCollection s (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
PTable s (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
PTable s (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)
PTable
s (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)
PTable
s (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)
PCollection
s (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)
PCollection
s (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 © 2016 The Apache Software Foundation. All rights reserved.