Class BlockKey
java.lang.Object
io.datarouter.filesystem.snapshot.block.BlockKey
public class BlockKey extends 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(Object obj)inthashCode()static BlockKeyleaf(SnapshotKey snapshotKey, int blockId, int fileId, int offset, int length)static BlockKeyroot(SnapshotKey snapshotKey)CacheBlockKeytoCacheBlockKey()FileKeytoFileKey()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() -
equals
-
toString
-