@Test public void createBlockId() { assertEquals(16797216L, BlockId.createBlockId(1, 20000L)); assertEquals(20000L, BlockId.createBlockId(0, 20000L)); assertEquals(2071248101952L, BlockId.createBlockId(123456, 123456L)); }
public static long createBlockId(long containerId, long sequenceNumber) { return ((containerId & CONTAINER_ID_MASK) << SEQUENCE_NUMBER_BITS) | (sequenceNumber & SEQUENCE_NUMBER_MASK); }
BlockId { public static long createBlockId(long containerId, long sequenceNumber) { return ((containerId & CONTAINER_ID_MASK) << SEQUENCE_NUMBER_BITS) | (sequenceNumber & SEQUENCE_NUMBER_MASK); } }
BlockId { public static long createBlockId(long containerId, long sequenceNumber) { return ((containerId & CONTAINER_ID_MASK) << SEQUENCE_NUMBER_BITS) | (sequenceNumber & SEQUENCE_NUMBER_MASK); } private  BlockId(); }
BlockId { public static long createBlockId(long containerId, long sequenceNumber) { return ((containerId & CONTAINER_ID_MASK) << SEQUENCE_NUMBER_BITS) | (sequenceNumber & SEQUENCE_NUMBER_MASK); } private  BlockId(); static long createBlockId(long containerId, long sequenceNumber); static long getContainerId(long blockId); static long getFileId(long blockId); static long getSequenceNumber(long blockId); static long getMaxSequenceNumber(); }
BlockId { public static long createBlockId(long containerId, long sequenceNumber) { return ((containerId & CONTAINER_ID_MASK) << SEQUENCE_NUMBER_BITS) | (sequenceNumber & SEQUENCE_NUMBER_MASK); } private  BlockId(); static long createBlockId(long containerId, long sequenceNumber); static long getContainerId(long blockId); static long getFileId(long blockId); static long getSequenceNumber(long blockId); static long getMaxSequenceNumber();  }