@ThreadSafe public final class BlockId extends Object
Modifier and Type | Method and Description |
---|---|
static long |
createBlockId(long containerId,
long sequenceNumber) |
static long |
getContainerId(long blockId) |
static long |
getFileId(long blockId) |
static long |
getMaxSequenceNumber() |
static long |
getSequenceNumber(long blockId) |
public static long createBlockId(long containerId, long sequenceNumber)
containerId
- the container ID to create the block ID withsequenceNumber
- the sequence number to create the block ID withpublic static long getContainerId(long blockId)
blockId
- the block ID to get the container ID forpublic static long getFileId(long blockId)
blockId
- the block ID to get the file ID forpublic static long getSequenceNumber(long blockId)
blockId
- the block ID to get the sequence number forpublic static long getMaxSequenceNumber()
Copyright © 2023. All Rights Reserved.