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 ofLoopChunkReducer, allowing convieniently processing of a range of values for parallel computing. However, the Reducer returns an object implementing theBinaryOperatorinterface. 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 Trun(int start, int end)Runs a process over the given loop portion, returning a single object of typeT.
-
-
-
Method Detail
-
run
T run(int start, int end)
Runs a process over the given loop portion, returning a single object of typeT.- Parameters:
start- the starting index to processend- the ending index to process- Returns:
- the object to return
-
-
DataMelt 3.0 © DataMelt by jWork.ORG