|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.lib.Join
public class Join
Utilities for joining multiple PTable
instances based on a common
lastKey.
Constructor Summary | |
---|---|
Join()
|
Method Summary | ||
---|---|---|
static
|
fullJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a full outer join on the specified PTable s. |
|
static
|
innerJoin(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified PTable s. |
|
static
|
join(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified PTable s. |
|
static
|
leftJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a left outer join on the specified PTable s. |
|
static
|
rightJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a right outer join on the specified PTable s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Join()
Method Detail |
---|
public static <K,U,V> PTable<K,Pair<U,V>> join(PTable<K,U> left, PTable<K,V> right)
PTable
s.
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuesleft
- A PTable to perform an inner join on.right
- A PTable to perform an inner join on.
public static <K,U,V> PTable<K,Pair<U,V>> innerJoin(PTable<K,U> left, PTable<K,V> right)
PTable
s.
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuesleft
- A PTable to perform an inner join on.right
- A PTable to perform an inner join on.
public static <K,U,V> PTable<K,Pair<U,V>> leftJoin(PTable<K,U> left, PTable<K,V> right)
PTable
s.
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuesleft
- A PTable to perform an left join on. All of this PTable's entries
will appear in the resulting PTable.right
- A PTable to perform an left join on.
public static <K,U,V> PTable<K,Pair<U,V>> rightJoin(PTable<K,U> left, PTable<K,V> right)
PTable
s.
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuesleft
- A PTable to perform an right join on.right
- A PTable to perform an right join on. All of this PTable's entries
will appear in the resulting PTable.
public static <K,U,V> PTable<K,Pair<U,V>> fullJoin(PTable<K,U> left, PTable<K,V> right)
PTable
s.
K
- Type of the keys.U
- Type of the first PTable
's valuesV
- Type of the second PTable
's valuesleft
- A PTable to perform an full join on.right
- A PTable to perform an full join on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |