|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.lib.Distinct
public final class Distinct
Functions for computing the distinct elements of a PCollection.
| Method Summary | ||
|---|---|---|
static
|
distinct(PCollection<S> input)
Construct a new PCollection that contains the unique elements of a
given input PCollection. |
|
static
|
distinct(PCollection<S> input,
int flushEvery)
A distinct operation that gives the client more control over how frequently
elements are flushed to disk in order to allow control over performance or
memory consumption. |
|
static
|
distinct(PTable<K,V> input)
A PTable<K, V> analogue of the distinct function. |
|
static
|
distinct(PTable<K,V> input,
int flushEvery)
A PTable<K, V> analogue of the distinct function. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <S> PCollection<S> distinct(PCollection<S> input)
PCollection that contains the unique elements of a
given input PCollection.
input - The input PCollection
PCollection that contains the unique elements of the inputpublic static <K,V> PTable<K,V> distinct(PTable<K,V> input)
PTable<K, V> analogue of the distinct function.
public static <S> PCollection<S> distinct(PCollection<S> input,
int flushEvery)
distinct operation that gives the client more control over how frequently
elements are flushed to disk in order to allow control over performance or
memory consumption.
input - The input PCollectionflushEvery - Flush the elements to disk whenever we encounter this many unique values
PCollection that contains the unique elements of the input
public static <K,V> PTable<K,V> distinct(PTable<K,V> input,
int flushEvery)
PTable<K, V> analogue of the distinct function.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||