water.persist
Class PersistFS
java.lang.Object
water.persist.Persist
water.persist.PersistFS
public final class PersistFS
- extends Persist
Persistence backend using local file system.
Field Summary |
java.io.File |
_dir
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_dir
public final java.io.File _dir
getPath
public java.lang.String getPath()
- Specified by:
getPath
in class Persist
clear
public void clear()
- Specified by:
clear
in class Persist
loadExisting
public void loadExisting()
- Description copied from class:
Persist
- Load all Key/Value pairs that can be found on the backend.
- Specified by:
loadExisting
in class Persist
load
public byte[] load(Value v)
- Description copied from class:
Persist
- Value should already be persisted to disk. A racing delete can trigger a failure where we get a
null return, but no crash (although one could argue that a racing load&delete is a bug no
matter what).
- Specified by:
load
in class Persist
store
public void store(Value v)
- Specified by:
store
in class Persist
delete
public void delete(Value v)
- Specified by:
delete
in class Persist
lazyArrayChunk
public Value lazyArrayChunk(Key key)
- Description copied from class:
Persist
- Lazily manifest data chunks on demand.
- Specified by:
lazyArrayChunk
in class Persist
getUsableSpace
public long getUsableSpace()
- Overrides:
getUsableSpace
in class Persist
getTotalSpace
public long getTotalSpace()
- Overrides:
getTotalSpace
in class Persist