Package sort.challenge.merge
Class ParallelCombiner
java.lang.Object
sort.challenge.merge.ParallelCombiner
- All Implemented Interfaces:
Combiner
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcombineRange(int[] data, int min, int mid, int maxExclusive)merges the sorted results from [min, mid) and the sorted results from [mid,maxExclusive).
-
Constructor Details
-
ParallelCombiner
public ParallelCombiner(int bufferLength, int threshold)
-
-
Method Details
-
combineRange
public void combineRange(int[] data, int min, int mid, int maxExclusive) throws InterruptedException, ExecutionExceptionDescription copied from interface:Combinermerges the sorted results from [min, mid) and the sorted results from [mid,maxExclusive).- Specified by:
combineRangein interfaceCombiner- Throws:
InterruptedExceptionExecutionException
-