org.apache.kahadb.index
Interface BTreeIndex.Prefixer<Key>

All Known Implementing Classes:
BTreeIndex.StringPrefixer
Enclosing class:
BTreeIndex<Key,Value>

public static interface BTreeIndex.Prefixer<Key>

Interface used to determine the simple prefix of two keys. , $Date: 2011-02-16 14:58:54 +0100 (mer. 16 févr. 2011) $


Method Summary
 Key getSimplePrefix(Key value1, Key value2)
          This methods should return shortest prefix of value2 where the following still holds:
value1 <= prefix <= value2.

When this method is called, the following is guaranteed:
value1 < value2

 

Method Detail

getSimplePrefix

Key getSimplePrefix(Key value1,
                    Key value2)
This methods should return shortest prefix of value2 where the following still holds:
value1 <= prefix <= value2.

When this method is called, the following is guaranteed:
value1 < value2

Parameters:
value1 -
value2 -
Returns:


Copyright © 2005-2012. All Rights Reserved.