Interface Task.Collector<T,​A,​R>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      BiConsumer<A,​T> accumulator()
      A function that folds Task results into a mutable result container.
      com.tangosol.util.function.Remote.Predicate<A> finishable()
      A Remote.Predicate to determine if a result container can be finished early avoiding further accumulation of results using the container.
      Function<A,​R> finisher()
      Perform the final transformation from the intermediate accumulation type A to the final result type R.
      Supplier<A> supplier()
      A function that creates and returns a new mutable result container.
      • Methods inherited from interface com.tangosol.io.ExternalizableLite

        readExternal, writeExternal
    • Method Detail

      • accumulator

        BiConsumer<A,​T> accumulator()
        A function that folds Task results into a mutable result container.
        Returns:
        a function that folds Task results into a mutable result container
      • finisher

        Function<A,​R> finisher()
        Perform the final transformation from the intermediate accumulation type A to the final result type R.
        Returns:
        a function which transforms the intermediate result to the final result
      • finishable

        com.tangosol.util.function.Remote.Predicate<A> finishable()
        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 finisher() will occur regardless of the result returned by the Remote.Predicate.

        Returns:
        a Remote.Predicate
      • supplier

        Supplier<A> supplier()
        A function that creates and returns a new mutable result container.
        Returns:
        a function which returns a new mutable result container