public class SolutionSetObjectsUpdateOutputCollector<T> extends Object implements Collector<T>
Collector
to update the solution set of a workset iteration.
The records are written to a HashTable hash table to allow in-memory point updates.
Records will only be collected, if there is a match after probing the hash table. If the build
side iterator is already positioned for the update, use SolutionSetFastUpdateOutputCollector
to the save re-probing.
SolutionSetFastUpdateOutputCollector
Constructor and Description |
---|
SolutionSetObjectsUpdateOutputCollector(JoinHashMap<T> hashMap) |
SolutionSetObjectsUpdateOutputCollector(JoinHashMap<T> hashMap,
Collector<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the collector.
|
void |
collect(T record)
Emits a record.
|
public SolutionSetObjectsUpdateOutputCollector(JoinHashMap<T> hashMap)
public SolutionSetObjectsUpdateOutputCollector(JoinHashMap<T> hashMap, Collector<T> delegate)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.