Author: orbiter
Date: 2008-02-23 01:14:11 +0100 (Sat, 23 Feb 2008)
New Revision: 4503
Modified:
trunk/source/de/anomic/kelondro/kelondroCollectionIndex.java
Log:
added remove operation to collection index (re-activation)
Modified: trunk/source/de/anomic/kelondro/kelondroCollectionIndex.java
===================================================================
--- trunk/source/de/anomic/kelondro/kelondroCollectionIndex.java
2008-02-22 23:46:27 UTC (rev 4502)
+++ trunk/source/de/anomic/kelondro/kelondroCollectionIndex.java
2008-02-23 00:14:11 UTC (rev 4503)
@@ -915,17 +915,15 @@
oldcollection.sort();
oldcollection.trim(false);
- /* in case that the new array size is zero we dont delete the array,
just allocate a minimal chunk
- *
-
if (oldcollection.size() == 0) {
// delete the index entry and the array
- kelondroFixedWidthArray array = getArray(oldPartitionNumber,
serialNumber, oldchunksize);
- array.remove(oldrownumber, false);
- index.remove(key);
+ array_remove(
+ oldPartitionNumber, serialNumber,
this.payloadrow.objectsize,
+ oldrownumber);
+ index.remove(key, true);
return removed;
}
- */
+
int newPartitionNumber = arrayIndex(oldcollection.size());
// see if we need new space or if we can overwrite the old space
_______________________________________________
YaCy-svn mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/yacy-svn