Class CachingBlockStorageReader
java.lang.Object
io.datarouter.filesystem.snapshot.storage.block.CachingBlockStorageReader
- All Implemented Interfaces:
SnapshotBlockStorageReader
public class CachingBlockStorageReader extends Object implements SnapshotBlockStorageReader
-
Constructor Summary
Constructors Constructor Description CachingBlockStorageReader(SnapshotBlockStorageReader back, SnapshotBlockStorage front) -
Method Summary
Modifier and Type Method Description byte[]getBranchBlock(SnapshotPaths paths, BlockKey blockKey)byte[]getLeafBlock(SnapshotPaths paths, BlockKey blockKey)byte[]getRootBlock()byte[]getValueBlock(SnapshotPaths paths, BlockKey blockKey)
-
Constructor Details
-
Method Details
-
getRootBlock
public byte[] getRootBlock()- Specified by:
getRootBlockin interfaceSnapshotBlockStorageReader
-
getBranchBlock
- Specified by:
getBranchBlockin interfaceSnapshotBlockStorageReader
-
getLeafBlock
- Specified by:
getLeafBlockin interfaceSnapshotBlockStorageReader
-
getValueBlock
- Specified by:
getValueBlockin interfaceSnapshotBlockStorageReader
-