Class BlockKey
java.lang.Object
io.datarouter.filesystem.snapshot.block.BlockKey
public class BlockKey
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description intblockIdintcolumnintfileIdintlengthintlevelintoffsetSnapshotKeysnapshotKeyBlockTypetype -
Method Summary
Modifier and Type Method Description static BlockKeybranch(SnapshotKey snapshotKey, int level, int blockId, int fileId, int offset, int length)static BlockKeybranchRoot(SnapshotKey snapshotKey, int maxLevel, int length)booleanequals(java.lang.Object obj)inthashCode()static BlockKeyleaf(SnapshotKey snapshotKey, int blockId, int fileId, int offset, int length)static BlockKeyroot(SnapshotKey snapshotKey)CacheBlockKeytoCacheBlockKey()FileKeytoFileKey()java.lang.StringtoString()static BlockKeyvalue(SnapshotKey snapshotKey, int column, int blockId, int fileId, int offset, int length)
-
Field Details
-
Method Details
-
root
-
branchRoot
-
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
-
toCacheBlockKey
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-