public class PersistHex extends Persist
Persist.PersistEntry
Constructor and Description |
---|
PersistHex() |
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
|
java.io.OutputStream |
create(java.lang.String path,
boolean overwrite)
Create a new file and return OutputStream for writing.
|
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
|
java.io.InputStream |
open(java.lang.String path) |
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, delete, exists, getHomeDirectory, getParent, getTotalSpace, getUsableSpace, isDirectory, isSeekableOpenSupported, key2Str, length, list, load, mkdirs, openSeekable, rename, wrapSeekable
public java.io.OutputStream create(java.lang.String path, boolean overwrite)
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 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 Key uriToKey(java.net.URI uri)
Persist
public void store(Value v)
Persist
public void delete(Value v)
Persist
public void cleanUp()
Persist