public class Set extends Object
PCollection
instances.Constructor and Description |
---|
Set() |
Modifier and Type | Method and Description |
---|---|
static <T> PCollection<Tuple3<T,T,T>> |
comm(PCollection<T> coll1,
PCollection<T> coll2)
Find the elements that are common to two sets, like the Unix
comm utility. |
static <T> PCollection<T> |
difference(PCollection<T> coll1,
PCollection<T> coll2)
Compute the set difference between two sets of elements.
|
static <T> PCollection<T> |
intersection(PCollection<T> coll1,
PCollection<T> coll2)
Compute the intersection of two sets of elements.
|
public static <T> PCollection<T> difference(PCollection<T> coll1, PCollection<T> coll2)
coll1
but
not in coll2
public static <T> PCollection<T> intersection(PCollection<T> coll1, PCollection<T> coll2)
coll1
and coll2
public static <T> PCollection<Tuple3<T,T,T>> comm(PCollection<T> coll1, PCollection<T> coll2)
comm
utility. This method returns a PCollection
of
Tuple3
objects, and the position in the tuple that an element
appears is determined by the collections that it is a member of, as
follows:
coll1
,coll2
, ornull
.Tuple3
objectsCopyright © 2013 The Apache Software Foundation. All Rights Reserved.