org.apache.activemq.store.kahadb.disk.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: 2012-11-07 16:00:07 +0000 (Wed, 07 Nov 2012) $


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-2013 The Apache Software Foundation. All Rights Reserved.