public final class InPlaceMutableHashTable.ReduceFacade extends Object
| Constructor and Description |
|---|
InPlaceMutableHashTable.ReduceFacade(ReduceFunction<T> reducer,
Collector<T> outputCollector,
boolean objectReuseEnabled) |
| Modifier and Type | Method and Description |
|---|---|
void |
emit()
Emits all elements currently held by the table to the collector.
|
void |
emitAndReset()
Emits all elements currently held by the table to the collector,
and resets the table.
|
void |
updateTableEntryWithReduce(T record)
Looks up the table entry that has the same key as the given record, and updates it by performing
a reduce step.
|
public InPlaceMutableHashTable.ReduceFacade(ReduceFunction<T> reducer, Collector<T> outputCollector, boolean objectReuseEnabled)
public void updateTableEntryWithReduce(T record) throws Exception
record - The record to update.Exceptionpublic void emit()
throws IOException
IOExceptionpublic void emitAndReset()
throws IOException
IOExceptionCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.