Class TaskCollectors.SetOfCollector<T>

    • Constructor Detail

      • SetOfCollector

        public SetOfCollector()
    • Method Detail

      • finisher

        public Function<Set<T>,​Set<T>> finisher()
        Description copied from interface: Task.Collector
        Perform the final transformation from the intermediate accumulation type A to the final result type R.
        Specified by:
        finisher in interface Task.Collector<T,​Set<T>,​Set<T>>
        Returns:
        a function which transforms the intermediate result to the final result
      • finishable

        public com.tangosol.util.function.Remote.Predicate<Set<T>> finishable()
        Description copied from interface: Task.Collector
        A Remote.Predicate to determine if a result container can be finished early avoiding further accumulation of results using the container.

        Should there be no further results to accumulate, finishing the result container with the Task.Collector.finisher() will occur regardless of the result returned by the Remote.Predicate.

        Specified by:
        finishable in interface Task.Collector<T,​Set<T>,​Set<T>>
        Returns:
        a Remote.Predicate
      • supplier

        public Supplier<Set<T>> supplier()
        Description copied from interface: Task.Collector
        A function that creates and returns a new mutable result container.
        Specified by:
        supplier in interface Task.Collector<T,​Set<T>,​Set<T>>
        Returns:
        a function which returns a new mutable result container
      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • readExternal

        public void readExternal​(com.tangosol.io.pof.PofReader in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(com.tangosol.io.pof.PofWriter out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException