net.metanotion.io.appenddb
Class RecoverDB
java.lang.Object
net.metanotion.io.appenddb.RecoverDB
- All Implemented Interfaces:
- BlockDB
public final class RecoverDB
- extends Object
- implements BlockDB
| Fields inherited from interface net.metanotion.io.appenddb.BlockDB |
EMPTY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recover
public static void recover(RandomAccess appendFile,
long maxBytes)
cachePut
public void cachePut(BlockKey k,
net.metanotion.io.appenddb.Block b)
- Specified by:
cachePut in interface BlockDB
cacheRemove
public void cacheRemove(BlockKey k)
- Specified by:
cacheRemove in interface BlockDB
loadBlock
public net.metanotion.io.appenddb.Block loadBlock(long offset)
- Specified by:
loadBlock in interface BlockDB
getRoot
public net.metanotion.io.appenddb.BlockRootMap getRoot()
- Specified by:
getRoot in interface BlockDB
setRoot
public void setRoot(net.metanotion.io.appenddb.BlockRootMap brm)
- Specified by:
setRoot in interface BlockDB
getCommitSync
public Object getCommitSync()
- Specified by:
getCommitSync in interface BlockDB
getNextXID
public int getNextXID()
- Specified by:
getNextXID in interface BlockDB
incNextXID
public int incNextXID()
- Specified by:
incNextXID in interface BlockDB
getBlock
public int getBlock()
- Specified by:
getBlock in interface BlockDB
incBlock
public int incBlock()
- Specified by:
incBlock in interface BlockDB
write
public long write(net.metanotion.io.appenddb.Block b)
- Specified by:
write in interface BlockDB
putOffsetToBlocks
public void putOffsetToBlocks(long offset,
BlockKey bk)
- Specified by:
putOffsetToBlocks in interface BlockDB
removeOffsetToBlocks
public void removeOffsetToBlocks(long offset)
- Specified by:
removeOffsetToBlocks in interface BlockDB