Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

some javadoc

danielr103ad2a43707
diff --git a/source/de/anomic/kelondro/kelondroBLOBHeap.java b/source/de/anomic/kelondro/kelondroBLOBHeap.java
index 862b4ac35..5584bc4d3 100755
--- a/source/de/anomic/kelondro/kelondroBLOBHeap.java
+++ b/source/de/anomic/kelondro/kelondroBLOBHeap.java
@@ -189,7 +189,7 @@ public final class kelondroBLOBHeap implements kelondroBLOB {
/**
* test if a key is in the heap file. This does not need any IO, because it uses only the ram index
* @param key
- * @return true if the key exists, false othervise
+ * @return true if the key exists, false otherwise
*/
public synchronized boolean has(final byte[] key) {
assert index != null;
diff --git a/source/de/anomic/kelondro/kelondroRowCollection.java b/source/de/anomic/kelondro/kelondroRowCollection.java
index 4247f3a21..cba931030 100644
--- a/source/de/anomic/kelondro/kelondroRowCollection.java
+++ b/source/de/anomic/kelondro/kelondroRowCollection.java
@@ -388,8 +388,11 @@ public class kelondroRowCollection {
this.lastTimeWrote = System.currentTimeMillis();
}
+ /**
+ * removes the last entry from the collection
+ * @return
+ */
public synchronized kelondroRow.Entry removeOne() {
- // removes the last entry from the collection
if (chunkcount == 0) return null;
final kelondroRow.Entry r = get(chunkcount - 1, true);
if (chunkcount == sortBound) sortBound--;
@@ -610,10 +613,14 @@ public class kelondroRowCollection {
}
}
+ /**
+ * @param L is the first element in the sequence
+ * @param R is the right bound of the sequence, and outside of the sequence
+ * @param S is the bound of the sorted elements in the sequence
+ * @param swapspace
+ * @return
+ */
final int partition(final int L, final int R, int S, final byte[] swapspace) {
- // L is the first element in the sequence
- // R is the right bound of the sequence, and outside of the sequence
- // S is the bound of the sorted elements in the sequence
assert (L < R - 1): "L = " + L + ", R = " + R + ", S = " + S;
assert (R - L >= isortlimit): "L = " + L + ", R = " + R + ", S = " + S;