|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.lib.Set
public class Set
Utilities for performing set operations (difference, intersection, etc) on
PCollection instances.
| Constructor Summary | |
|---|---|
Set()
|
|
| Method Summary | ||
|---|---|---|
static
|
comm(PCollection<T> coll1,
PCollection<T> coll2)
Find the elements that are common to two sets, like the Unix comm utility. |
|
static
|
difference(PCollection<T> coll1,
PCollection<T> coll2)
Compute the set difference between two sets of elements. |
|
static
|
intersection(PCollection<T> coll1,
PCollection<T> coll2)
Compute the intersection of two sets of elements. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Set()
| Method Detail |
|---|
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 objects
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||