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: 2013-10-21 18:53:28 +0000 (Mon, 21 Oct 2013) $


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.