public final class InPlaceMutableHashTable.ReduceFacade extends Object
Constructor and Description |
---|
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 ReduceFacade(ReduceFunction<T> reducer, Collector<T> outputCollector, boolean objectReuseEnabled)
public void updateTableEntryWithReduce(T record) throws Exception
record
- The record to update.Exception
public void emit() throws IOException
IOException
public void emitAndReset() throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.