org.openrdf.sesame.sailimpl.nativerdf.btree
Class DefaultBTreeValueComparator
java.lang.Object
org.openrdf.sesame.sailimpl.nativerdf.btree.DefaultBTreeValueComparator
- All Implemented Interfaces:
- BTreeValueComparator
- public class DefaultBTreeValueComparator
- extends Object
- implements BTreeValueComparator
A BTreeValueComparator that compares values with eachother by comparing all
of their bytes.
|
Method Summary |
int |
compareBTreeValues(byte[] key,
byte[] data,
int offset,
int length)
Compares the supplied key to the value of length length,
starting at offset offset in the supplied data array. |
DefaultBTreeValueComparator
public DefaultBTreeValueComparator()
compareBTreeValues
public int compareBTreeValues(byte[] key,
byte[] data,
int offset,
int length)
- Description copied from interface:
BTreeValueComparator
- Compares the supplied key to the value of length length,
starting at offset offset in the supplied data array.
- Specified by:
compareBTreeValues in interface BTreeValueComparator
- Parameters:
key - A byte array representing the search key.data - A byte array containing the value to compare the key to.offset - The offset (0-based) of the value in data.length - The length of the value.
- Returns:
- A negative integer when the key is smaller than the value, a
positive integer when the key is larger than the value, or 0
when the key is equal to the value.
Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.