Interface DataBlockEncoder

All Superinterfaces:
BlockEncoder
All Known Subinterfaces:
BranchBlockEncoder, LeafBlockEncoder, ValueBlockEncoder
All Known Implementing Classes:
BranchBlockV1Encoder, LeafBlockV1Encoder, ValueBlockV1Encoder

public interface DataBlockEncoder
extends BlockEncoder
  • Method Summary

    Modifier and Type Method Description
    int numBytes()
    Used to determine when to flush a block.
    int numRecords()
    The number of items in the block.

    Methods inherited from interface io.datarouter.filesystem.snapshot.encode.BlockEncoder

    format
  • Method Details

    • numRecords

      int numRecords()
      The number of items in the block. Zero indicates we don't need to flush it.
    • numBytes

      int numBytes()
      Used to determine when to flush a block. We won't always know the exact block size until we actually encode it.