@Test public void testEntry() throws Exception { Buffer buffer = Buffer.allocate(IndexEntryV1.SIZE); buffer.duplicate() .putLong(1).putLong(2).putInt(3).putInt(4).putInt(5); IndexEntryV1 entry = new IndexV1(buffer).entry(0); assertEquals(1, entry.getMsb()); assertEquals(2, entry.getLsb()); assertEquals(3, entry.getPosition()); assertEquals(4, entry.getLength()); assertEquals(5, entry.getGeneration()); assertEquals(5, entry.getFullGeneration()); assertEquals(true, entry.isCompacted()); }
@Override public IndexEntryV1 entry(int i) { return new IndexEntryV1(entries, checkElementIndex(i, count()) * IndexEntryV1.SIZE); }
IndexV1 implements Index { @Override public IndexEntryV1 entry(int i) { return new IndexEntryV1(entries, checkElementIndex(i, count()) * IndexEntryV1.SIZE); } }
IndexV1 implements Index { @Override public IndexEntryV1 entry(int i) { return new IndexEntryV1(entries, checkElementIndex(i, count()) * IndexEntryV1.SIZE); } IndexV1(Buffer entries); }
IndexV1 implements Index { @Override public IndexEntryV1 entry(int i) { return new IndexEntryV1(entries, checkElementIndex(i, count()) * IndexEntryV1.SIZE); } IndexV1(Buffer entries); @Override Set<UUID> getUUIDs(); @Override int findEntry(long msb, long lsb); @Override int size(); @Override int count(); @Override IndexEntryV1 entry(int i); }
IndexV1 implements Index { @Override public IndexEntryV1 entry(int i) { return new IndexEntryV1(entries, checkElementIndex(i, count()) * IndexEntryV1.SIZE); } IndexV1(Buffer entries); @Override Set<UUID> getUUIDs(); @Override int findEntry(long msb, long lsb); @Override int size(); @Override int count(); @Override IndexEntryV1 entry(int i);  }