public abstract class Persist
extends java.lang.Object
store(Value v) - Store a Value, using storage space.load(Value v) - Load a previously stored Value.delete(Value v) - Free storage from a previously store Value.| Modifier and Type | Class and Description |
|---|---|
static class |
Persist.Schemes
Persistence schemes; used as file prefixes eg "hdfs://some_hdfs_path/some_file"
|
| Modifier and Type | Field and Description |
|---|---|
static Persist[] |
I
All available back-ends, C.f.
|
| Constructor and Description |
|---|
Persist() |
| Modifier and Type | Method and Description |
|---|---|
static Key |
anyURIToKey(java.net.URI uri) |
abstract void |
delete(Value v)
Reclaim space from a previously stored Value
|
static Persist |
getIce()
Get the current Persist flavor for user-mode swapping.
|
long |
getTotalSpace()
Total storage space, or -1 for unknown
|
long |
getUsableSpace()
Usable storage space, or -1 for unknown
|
abstract byte[] |
load(Value v)
Load a previously stored Value
|
abstract void |
store(Value v)
Store a Value into persistent storage, consuming some storage space.
|
abstract Key |
uriToKey(java.net.URI uri)
Transform given uri into file vector holding file name.
|
public static final Persist[] I
public static Persist getIce()
public abstract void store(Value v)
public abstract byte[] load(Value v) throws java.io.IOException
java.io.IOExceptionpublic abstract void delete(Value v)
public long getUsableSpace()
public long getTotalSpace()
public abstract Key uriToKey(java.net.URI uri) throws java.io.IOException
java.io.IOExceptionpublic static final Key anyURIToKey(java.net.URI uri) throws java.io.IOException
java.io.IOException