public class SolutionSetUpdateOutputCollector<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 |
---|
SolutionSetUpdateOutputCollector(CompactingHashTable<T> solutionSet) |
SolutionSetUpdateOutputCollector(CompactingHashTable<T> solutionSet,
Collector<T> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the collector.
|
void |
collect(T record)
Emits a record.
|
public SolutionSetUpdateOutputCollector(CompactingHashTable<T> solutionSet)
public SolutionSetUpdateOutputCollector(CompactingHashTable<T> solutionSet, Collector<T> delegate)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.