public class Join
extends java.lang.Object
Constructor and Description |
---|
Join() |
Modifier and Type | Method and Description |
---|---|
static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> |
fullOuterJoin(PCollection<KV<K,V1>> leftCollection,
PCollection<KV<K,V2>> rightCollection,
V1 leftNullValue,
V2 rightNullValue)
Full Outer Join of two collections of KV elements.
|
static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> |
innerJoin(PCollection<KV<K,V1>> leftCollection,
PCollection<KV<K,V2>> rightCollection)
Inner join of two collections of KV elements.
|
static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> |
leftOuterJoin(PCollection<KV<K,V1>> leftCollection,
PCollection<KV<K,V2>> rightCollection,
V2 nullValue)
Left Outer Join of two collections of KV elements.
|
static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> |
rightOuterJoin(PCollection<KV<K,V1>> leftCollection,
PCollection<KV<K,V2>> rightCollection,
V1 nullValue)
Right Outer Join of two collections of KV elements.
|
public static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> innerJoin(PCollection<KV<K,V1>> leftCollection, PCollection<KV<K,V2>> rightCollection)
K
- Type of the key for both collectionsV1
- Type of the values for the left collection.V2
- Type of the values for the right collection.leftCollection
- Left side collection to join.rightCollection
- Right side collection to join.public static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> leftOuterJoin(PCollection<KV<K,V1>> leftCollection, PCollection<KV<K,V2>> rightCollection, V2 nullValue)
K
- Type of the key for both collectionsV1
- Type of the values for the left collection.V2
- Type of the values for the right collection.leftCollection
- Left side collection to join.rightCollection
- Right side collection to join.nullValue
- Value to use as null value when right side do not match left side.public static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> rightOuterJoin(PCollection<KV<K,V1>> leftCollection, PCollection<KV<K,V2>> rightCollection, V1 nullValue)
K
- Type of the key for both collectionsV1
- Type of the values for the left collection.V2
- Type of the values for the right collection.leftCollection
- Left side collection to join.rightCollection
- Right side collection to join.nullValue
- Value to use as null value when left side do not match right side.public static <K,V1,V2> PCollection<KV<K,KV<V1,V2>>> fullOuterJoin(PCollection<KV<K,V1>> leftCollection, PCollection<KV<K,V2>> rightCollection, V1 leftNullValue, V2 rightNullValue)
K
- Type of the key for both collectionsV1
- Type of the values for the left collection.V2
- Type of the values for the right collection.leftCollection
- Left side collection to join.rightCollection
- Right side collection to join.leftNullValue
- Value to use as null value when left side do not match right side.rightNullValue
- Value to use as null value when right side do not match right side.