Class SolutionSetFastUpdateOutputCollector<T>

  • All Implemented Interfaces:
    org.apache.flink.util.Collector<T>

    public class SolutionSetFastUpdateOutputCollector<T>
    extends Object
    implements org.apache.flink.util.Collector<T>
    A Collector to update the solution set of a workset iteration.

    The records are written to a hash table to allow in-memory point updates.

    Assumption for fast updates: the build side iterator of the hash table is already positioned for the update. This is for example the case when a solution set update happens directly after a solution set join. If this assumption doesn't hold, use SolutionSetUpdateOutputCollector, which probes the hash table before updating.

    • Constructor Detail

      • SolutionSetFastUpdateOutputCollector

        public SolutionSetFastUpdateOutputCollector​(CompactingHashTable<T> solutionSet)
      • SolutionSetFastUpdateOutputCollector

        public SolutionSetFastUpdateOutputCollector​(CompactingHashTable<T> solutionSet,
                                                    org.apache.flink.util.Collector<T> delegate)
    • Method Detail

      • collect

        public void collect​(T record)
        Specified by:
        collect in interface org.apache.flink.util.Collector<T>
      • close

        public void close()
        Specified by:
        close in interface org.apache.flink.util.Collector<T>