Class SnapshotFileWriter

java.lang.Object
io.datarouter.filesystem.snapshot.writer.SnapshotFileWriter

public class SnapshotFileWriter
extends Object
  • Field Details

    • branchBlockQueueByLevel

      public final Map<Integer,​BlockQueue> branchBlockQueueByLevel
    • leafBlockQueue

      public final BlockQueue leafBlockQueue
    • valueBlockQueueByColumn

      public final List<BlockQueue> valueBlockQueueByColumn
  • Constructor Details

  • Method Details

    • addBranchBlock

      public void addBranchBlock​(int level, int blockId, CompressedBlock block)
    • completeBranches

      public void completeBranches​(int level)
    • addLeafBlock

      public void addLeafBlock​(int blockId, CompressedBlock block)
    • completeLeaves

      public void completeLeaves()
    • addValueBlock

      public void addValueBlock​(int column, int blockId, CompressedBlock block)
    • completeValues

      public void completeValues()
    • logQueueStats

      public void logQueueStats()
    • valueFileInfoReady

      public boolean valueFileInfoReady​(int column, int firstBlockId, int numBlocks)
    • valueFileInfo

      public BlockQueue.FileIdsAndEndings valueFileInfo​(int column, int firstBlockId, int numBlocks)
    • leafFileInfoReady

      public boolean leafFileInfoReady​(int firstBlockId, int numBlocks)
    • leafFileInfo

      public BlockQueue.FileIdsAndEndings leafFileInfo​(int firstBlockId, int numBlocks)
    • branchFileInfoReady

      public boolean branchFileInfoReady​(int level, int firstBlockId, int numBlocks)
    • branchFileInfo

      public BlockQueue.FileIdsAndEndings branchFileInfo​(int level, int firstBlockId, int numBlocks)
    • rootBranchEnding

      public int rootBranchEnding()