Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.index » [javadoc | source]
org.apache.kahadb.index
public static interface: BTreeIndex.Prefixer [javadoc | source]

All Known Implementing Classes:
    StringPrefixer

Interface used to determine the simple prefix of two keys.
Method from org.apache.kahadb.index.BTreeIndex$Prefixer Summary:
getSimplePrefix
Method from org.apache.kahadb.index.BTreeIndex$Prefixer Detail:
 public 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