public class PersistEagerHTTP extends Persist
Persist.PersistEntry
Constructor and Description |
---|
PersistEagerHTTP() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
calcTypeaheadMatches(java.lang.String filter,
int limit)
Calculate typeahead matches for src
|
void |
cleanUp()
Delete persistent storage on startup and shutdown
|
void |
delete(Value v)
Reclaim space from a previously stored Value
|
void |
importFiles(java.lang.String path,
java.lang.String pattern,
java.util.ArrayList<java.lang.String> files,
java.util.ArrayList<java.lang.String> keys,
java.util.ArrayList<java.lang.String> fails,
java.util.ArrayList<java.lang.String> dels) |
byte[] |
load(Value v)
Load a previously stored Value
|
void |
store(Value v)
Store a Value into persistent storage, consuming some storage space.
|
Key |
uriToKey(java.net.URI uri)
Transform given uri into file vector holding file name.
|
canHandle, create, delete, exists, getHomeDirectory, getParent, getTotalSpace, getUsableSpace, isDirectory, key2Str, length, list, mkdirs, open, rename
public void importFiles(java.lang.String path, java.lang.String pattern, java.util.ArrayList<java.lang.String> files, java.util.ArrayList<java.lang.String> keys, java.util.ArrayList<java.lang.String> fails, java.util.ArrayList<java.lang.String> dels)
importFiles
in class Persist
public java.util.List<java.lang.String> calcTypeaheadMatches(java.lang.String filter, int limit)
Persist
calcTypeaheadMatches
in class Persist
filter
- Source string to match for typeaheadlimit
- Max number of entries to returnpublic Key uriToKey(java.net.URI uri)
Persist
public void store(Value v)
Persist
public void delete(Value v)
Persist
public void cleanUp()
Persist