|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.util.HashMapIndex
public class HashMapIndex
Implements a StringIndex that is based on a hashmap and persists
the names as property file.
| Constructor Summary | |
|---|---|
HashMapIndex(FileSystemResource file)
Creates a new hashmap index and loads the lookup tables from the filesystem resource. |
|
| Method Summary | |
|---|---|
String |
indexToString(int i)
Returns the string for a given index. |
int |
stringToIndex(String nsUri)
Returns the index for a given string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashMapIndex(FileSystemResource file)
throws FileSystemException,
IOException
file - the filesystem resource that stores the lookup tables.
IOException - if an I/O error occurs.
FileSystemException - if an I/O error occurs.| Method Detail |
|---|
public int stringToIndex(String nsUri)
stringToIndex in interface StringIndexnsUri - the indexed (or to be indexed) string
public String indexToString(int i)
indexToString in interface StringIndexi - index of a string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||