Class WorksetUpdateOutputCollector<T>

  • All Implemented Interfaces:
    Collector<T>

    public class WorksetUpdateOutputCollector<T>
    extends Object
    implements Collector<T>
    A Collector to update the iteration workset (partial solution for bulk iterations).

    The records are written to a DataOutputView to allow in-memory data exchange.

    • Method Detail

      • collect

        public void collect​(T record)
        Description copied from interface: Collector
        Emits a record.
        Specified by:
        collect in interface Collector<T>
        Parameters:
        record - The record to collect.
      • getElementsCollectedAndReset

        public long getElementsCollectedAndReset()
      • close

        public void close()
        Description copied from interface: Collector
        Closes the collector. If any data was buffered, that data will be flushed.
        Specified by:
        close in interface Collector<T>