org.apache.activemq.store.kahadb.disk.index
Class BTreeIndex.StringPrefixer

java.lang.Object
  extended by org.apache.activemq.store.kahadb.disk.index.BTreeIndex.StringPrefixer
All Implemented Interfaces:
BTreeIndex.Prefixer<String>
Enclosing class:
BTreeIndex<Key,Value>

public static class BTreeIndex.StringPrefixer
extends Object
implements BTreeIndex.Prefixer<String>

StringPrefixer is a Prefixer implementation that works on strings.


Constructor Summary
BTreeIndex.StringPrefixer()
           
 
Method Summary
 String getSimplePrefix(String value1, String value2)
          Example: If value1 is "Hello World" and value 2 is "Help Me" then the result will be: "Help"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BTreeIndex.StringPrefixer

public BTreeIndex.StringPrefixer()
Method Detail

getSimplePrefix

public String getSimplePrefix(String value1,
                              String value2)
Example: If value1 is "Hello World" and value 2 is "Help Me" then the result will be: "Help"

Specified by:
getSimplePrefix in interface BTreeIndex.Prefixer<String>
Returns:
See Also:
BTreeIndex.Prefixer.getSimplePrefix(Key, Key)


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.