Class SnapshotGroup
java.lang.Object
io.datarouter.filesystem.snapshot.group.SnapshotGroup
- All Implemented Interfaces:
BlockLoader
public class SnapshotGroup extends Object implements BlockLoader
-
Constructor Summary
Constructors Constructor Description SnapshotGroup(String groupId, SnapshotPathsRegistry pathsRegistry, RootBlockDecoder rootBlockDecoder, DecodingBlockLoaderFactory decodingBlockLoaderFactory, io.datarouter.storage.file.Directory directory, io.datarouter.storage.file.Directory cacheDirectory, Class<? extends SnapshotKeyDecoder> snapshotKeyDecoderClass, Class<? extends SnapshotRecordStringDecoder> snapshotRecordDecoderClass, SnapshotVacuumConfig vacuumConfig) -
Method Summary
Modifier and Type Method Description SnapshotGroupDeleteOpsdeleteOps()SnapshotGroupFileReadOpsfileReadOps()Blockget(BlockKey blockKey)StringgetGroupId()Class<? extends SnapshotRecordStringDecoder>getSnapshotEntryDecoderClass()SnapshotKeygetSnapshotKey(String snapshotId)SnapshotGroupKeyReadOpskeyReadOps(boolean cacheOk)io.datarouter.scanner.Scanner<LeafBlock>leafRange(LeafBlockRangeLoader.LeafBlockRange range)SnapshotBlockStoragemakeCacheStorage(String snapshotId)SnapshotFileStoragemakeSnapshotFileStorage(String snapshotId)SnapshotBlockStorageReadermakeStorageReader(String snapshotId)SnapshotGroupVacuumOpsvacuumOps()SnapshotGroupWriteOpswriteOps()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.filesystem.snapshot.reader.block.BlockLoader
branch, leaf, root, value
-
Constructor Details
-
SnapshotGroup
public SnapshotGroup(String groupId, SnapshotPathsRegistry pathsRegistry, RootBlockDecoder rootBlockDecoder, DecodingBlockLoaderFactory decodingBlockLoaderFactory, io.datarouter.storage.file.Directory directory, io.datarouter.storage.file.Directory cacheDirectory, Class<? extends SnapshotKeyDecoder> snapshotKeyDecoderClass, Class<? extends SnapshotRecordStringDecoder> snapshotRecordDecoderClass, SnapshotVacuumConfig vacuumConfig)
-
-
Method Details
-
writeOps
-
fileReadOps
-
keyReadOps
-
deleteOps
-
vacuumOps
-
get
- Specified by:
getin interfaceBlockLoader
-
leafRange
public io.datarouter.scanner.Scanner<LeafBlock> leafRange(LeafBlockRangeLoader.LeafBlockRange range)- Specified by:
leafRangein interfaceBlockLoader
-
getGroupId
-
getSnapshotKey
-
getSnapshotEntryDecoderClass
-
makeStorageReader
-
makeSnapshotFileStorage
-
makeCacheStorage
-