|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unister.semweb.drums.bucket.hashfunction.util.RangeHashSorter
public class RangeHashSorter
This class is able to perform an associative sort. It takes two arrays with the same number of elements. These arrays correspond to each other, meaning that the value of the ith element of the first array corresponds of the ith element of the second array.
Constructor Summary | |
---|---|
RangeHashSorter(byte[][] ranges,
java.lang.String[] filenames)
Creates a sorting machine with the three arrays. |
Method Summary | |
---|---|
void |
quickSort()
Makes a quicksort for the ranges. |
void |
quickSort(int left,
int right)
Quicksort for ranges. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RangeHashSorter(byte[][] ranges, java.lang.String[] filenames)
ranges
- the ranges to sortfilenames
- the filenames to sort depending on the rangesMethod Detail |
---|
public void quickSort()
public void quickSort(int left, int right)
left
- The left boundary of what will be sorted.right
- The right boundary of what will be sorted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |