Skip to content

Commit

Permalink
some work on kelondroCollection, no effect on current YaCy functions
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2180 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jun 6, 2006
1 parent 2185a5c commit 577a6e6
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 99 deletions.
1 change: 0 additions & 1 deletion source/de/anomic/data/blogBoard.java
Expand Up @@ -61,7 +61,6 @@
import javax.xml.parsers.ParserConfigurationException;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
Expand Down
14 changes: 14 additions & 0 deletions source/de/anomic/kelondro/kelondroAbstractOrder.java
Expand Up @@ -74,6 +74,20 @@ public int compare(Object a, Object b) {
throw new IllegalArgumentException("Object type or Object type combination not supported: a=" + a + ", b=" + b);
}

public int compare(byte[] a, byte[] b, int boffset, int blength) {
int l = Math.min(a.length, blength);
byte[] bb = new byte[l];
System.arraycopy(b, boffset, bb, 0, l);
return compare(a, bb);
}

public int compare(byte[] a, int aoffset, int alength, byte[] b, int boffset, int blength) {
int l = Math.min(alength, blength);
byte[] aa = new byte[l];
System.arraycopy(a, aoffset, aa, 0, l);
return compare(aa, b, boffset, blength);
}

public byte[] zero() {
return zero;
}
Expand Down

0 comments on commit 577a6e6

Please sign in to comment.