|
|
@ -616,8 +616,11 @@ public class RowCollection implements Sortable<Row.Entry>, Iterable<Row.Entry>,
|
|
|
|
|
|
|
|
|
|
|
|
public final void sort() {
|
|
|
|
public final void sort() {
|
|
|
|
if (this.sortBound == this.chunkcount) return; // this is sorted
|
|
|
|
if (this.sortBound == this.chunkcount) return; // this is sorted
|
|
|
|
net.yacy.cora.storage.Array.sort(this);
|
|
|
|
synchronized (this) {
|
|
|
|
this.sortBound = this.chunkcount;
|
|
|
|
if (this.sortBound == this.chunkcount) return; // check again
|
|
|
|
|
|
|
|
net.yacy.cora.storage.Array.sort(this);
|
|
|
|
|
|
|
|
this.sortBound = this.chunkcount;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class partitionthread implements Callable<Integer> {
|
|
|
|
public static class partitionthread implements Callable<Integer> {
|
|
|
|