org.apache.kahadb.index
Class BTreeIndex.StringPrefixer
java.lang.Object
org.apache.kahadb.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BTreeIndex.StringPrefixer
public BTreeIndex.StringPrefixer()
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-2011 Apache Software Foundation. All Rights Reserved.