Class SnapshotBlockWriter
java.lang.Object
io.datarouter.filesystem.snapshot.writer.SnapshotBlockWriter
public class SnapshotBlockWriter extends Object
-
Field Summary
Fields Modifier and Type Field Description SnapshotFileWriterfileWriter -
Constructor Summary
Constructors Constructor Description SnapshotBlockWriter(SnapshotKey snapshotKey, SnapshotWriterTracker tracker, SnapshotBlockStorage blockStorage, SnapshotFileStorage fileStorage, SnapshotWriterConfig config, ExecutorService exec) -
Method Summary
Modifier and Type Method Description voidcomplete()RootBlockflushRootBlock(long writeStartTimeMs, List<Integer> numBranchBlocksByLevel, List<Integer> numValueBlocksByColumn, int numBranchLevels, long numKeys, int numLeafBlocks)voidonBranchFileWrite(int levelWritten)voidonLeafFileWrite(Void unused)voidonValueFileWrite(Void unused)voidsubmitBranch(BranchBlockEncoder encoder)voidsubmitLeaf(LeafBlockEncoder encoder)voidsubmitValueBlock(int column, int blockId, ValueBlockEncoder encoder)
-
Field Details
-
Constructor Details
-
SnapshotBlockWriter
public SnapshotBlockWriter(SnapshotKey snapshotKey, SnapshotWriterTracker tracker, SnapshotBlockStorage blockStorage, SnapshotFileStorage fileStorage, SnapshotWriterConfig config, ExecutorService exec)
-
-
Method Details
-
flushRootBlock
-
submitBranch
-
submitLeaf
-
submitValueBlock
-
onValueFileWrite
-
onLeafFileWrite
-
onBranchFileWrite
public void onBranchFileWrite(int levelWritten) -
complete
public void complete()
-