Class SnapshotBlockWriter
java.lang.Object
io.datarouter.filesystem.snapshot.writer.SnapshotBlockWriter
public class SnapshotBlockWriter
extends java.lang.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, java.util.concurrent.ExecutorService exec) -
Method Summary
Modifier and Type Method Description voidcomplete()RootBlockflushRootBlock(long writeStartTimeMs, java.util.List<java.lang.Integer> numBranchBlocksByLevel, java.util.List<java.lang.Integer> numValueBlocksByColumn, int numBranchLevels, long numKeys, int numLeafBlocks)voidonBranchFileWrite(int levelWritten)voidonLeafFileWrite(java.lang.Void unused)voidonValueFileWrite(java.lang.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, java.util.concurrent.ExecutorService exec)
-
-
Method Details
-
flushRootBlock
public RootBlock flushRootBlock(long writeStartTimeMs, java.util.List<java.lang.Integer> numBranchBlocksByLevel, java.util.List<java.lang.Integer> numValueBlocksByColumn, int numBranchLevels, long numKeys, int numLeafBlocks) -
submitBranch
-
submitLeaf
-
submitValueBlock
-
onValueFileWrite
public void onValueFileWrite(java.lang.Void unused) -
onLeafFileWrite
public void onLeafFileWrite(java.lang.Void unused) -
onBranchFileWrite
public void onBranchFileWrite(int levelWritten) -
complete
public void complete()
-