|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.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. This implementation reloads the table from the resource if a lookup fails and if the resource was modified since. |
int |
stringToIndex(String nsUri)
Returns the index for a given string. This implementation reloads the table from the resource if a lookup fails and if the resource was modified since. |
| 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 string to return the index for
public String indexToString(int i)
null is returned.
This implementation reloads the table from the resource if a lookup fails
and if the resource was modified since.
indexToString in interface StringIndexi - the index tp returns the string for.
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||