public final class InPlaceMutableHashTable.ReduceFacade extends Object
| Constructor and Description |
|---|
ReduceFacade(org.apache.flink.api.common.functions.ReduceFunction<T> reducer,
org.apache.flink.util.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 void updateTableEntryWithReduce(T record) throws Exception
record - The record to update.Exceptionpublic void emit()
throws IOException
IOExceptionpublic void emitAndReset()
throws IOException
IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.