@Test public void getFileId() { assertEquals(MAX_SEQUENCE_NUMBER, BlockId.getFileId(1L)); assertEquals(MAX_SEQUENCE_NUMBER, BlockId.getFileId(20000L)); assertEquals(MAX_SEQUENCE_NUMBER * 2 + 1, BlockId.getFileId(2 * MAX_SEQUENCE_NUMBER)); assertEquals(2071264755711L, BlockId.getFileId(2071248101952L)); }
public static long getFileId(long blockId) { return createBlockId(getContainerId(blockId), getMaxSequenceNumber()); }
BlockId { public static long getFileId(long blockId) { return createBlockId(getContainerId(blockId), getMaxSequenceNumber()); } }
BlockId { public static long getFileId(long blockId) { return createBlockId(getContainerId(blockId), getMaxSequenceNumber()); } private  BlockId(); }
BlockId { public static long getFileId(long blockId) { return createBlockId(getContainerId(blockId), getMaxSequenceNumber()); } 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 getFileId(long blockId) { return createBlockId(getContainerId(blockId), getMaxSequenceNumber()); } 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();  }