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