|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 PTables. |
|
static
|
innerJoin(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified PTables. |
|
static
|
join(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified PTables. |
|
static
|
join(PTable<K,U> left,
PTable<K,V> right,
JoinFn<K,U,V> joinFn)
|
|
static
|
leftJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a left outer join on the specified PTables. |
|
static
|
rightJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a right outer join on the specified PTables. |
|
| 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)
PTables.
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)
PTables.
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)
PTables.
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)
PTables.
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)
PTables.
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.
public static <K,U,V> PTable<K,Pair<U,V>> join(PTable<K,U> left,
PTable<K,V> right,
JoinFn<K,U,V> joinFn)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||