public class Join extends Object
PTable
instances based on a common
lastKey.Constructor and Description |
---|
Join() |
Modifier and Type | Method and Description |
---|---|
static <K,U,V> PTable<K,Pair<U,V>> |
fullJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a full outer join on the specified
PTable s. |
static <K,U,V> PTable<K,Pair<U,V>> |
innerJoin(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified
PTable s. |
static <K,U,V> PTable<K,Pair<U,V>> |
join(PTable<K,U> left,
PTable<K,V> right)
Performs an inner join on the specified
PTable s. |
static <K,U,V> PTable<K,Pair<U,V>> |
leftJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a left outer join on the specified
PTable s. |
static <K,U,V> PTable<K,Pair<U,V>> |
rightJoin(PTable<K,U> left,
PTable<K,V> right)
Performs a right outer join on the specified
PTable s. |
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.Copyright © 2016 The Apache Software Foundation. All rights reserved.