Class BlockKey

java.lang.Object
io.datarouter.filesystem.snapshot.block.BlockKey

public class BlockKey
extends Object
  • Field Details

    • snapshotKey

      public final SnapshotKey snapshotKey
    • type

      public final BlockType type
    • level

      public final int level
    • column

      public final int column
    • blockId

      public final int blockId
    • fileId

      public final int fileId
    • offset

      public final int offset
    • length

      public final int length
  • Method Details

    • root

      public static BlockKey root​(SnapshotKey snapshotKey)
    • branchRoot

      public static BlockKey branchRoot​(SnapshotKey snapshotKey, int maxLevel, int length)
    • branch

      public static BlockKey branch​(SnapshotKey snapshotKey, int level, int blockId, int fileId, int offset, int length)
    • leaf

      public static BlockKey leaf​(SnapshotKey snapshotKey, int blockId, int fileId, int offset, int length)
    • value

      public static BlockKey value​(SnapshotKey snapshotKey, int column, int blockId, int fileId, int offset, int length)
    • toFileKey

      public FileKey toFileKey()
    • toCacheBlockKey

      public CacheBlockKey toCacheBlockKey()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object