public static class WordCountAccumulators.SetAccumulator<T extends Value> extends Object implements Accumulator<T,Set<T>>
| Constructor and Description |
|---|
WordCountAccumulators.SetAccumulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value) |
Set<T> |
getLocalValue() |
void |
merge(Accumulator<T,Set<T>> other) |
void |
read(DataInput in) |
void |
resetLocal() |
void |
write(DataOutput out) |
public WordCountAccumulators.SetAccumulator()
public void add(T value)
public Set<T> getLocalValue()
getLocalValue in interface Accumulator<T extends Value,Set<T extends Value>>public void resetLocal()
resetLocal in interface Accumulator<T extends Value,Set<T extends Value>>public void merge(Accumulator<T,Set<T>> other)
public void write(DataOutput out) throws IOException
write in interface IOReadableWritableIOExceptionpublic void read(DataInput in) throws IOException
read in interface IOReadableWritableIOExceptionCopyright © 2013. All rights reserved.