Documentation of 'jsat.utils.concurrent.LoopChunkReducer' Java class
LoopChunkReducer
jsat.utils.concurrent

Interface LoopChunkReducer<T>

  • Type Parameters:
    T - The object type that the Loop Chunk Reducer will return


    public interface LoopChunkReducer<T>
    This functional interface is similar to that of LoopChunkReducer, allowing convieniently processing of a range of values for parallel computing. However, the Reducer returns an object implementing the BinaryOperator interface. The goal is that all chunks will eventually be merged into a single result. This interface is preffered over using normal streams to reduce unecessary object creation and reductions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      T run(int start, int end)
      Runs a process over the given loop portion, returning a single object of type T.
    • Method Detail

      • run

        T run(int start,
              int end)
        Runs a process over the given loop portion, returning a single object of type T.
        Parameters:
        start - the starting index to process
        end - the ending index to process
        Returns:
        the object to return

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.