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
-
snapshotKey
-
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
-
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
-