NaiveIndex extends Index { @Override public SeekingCurrentIterator handleGet(byte[] indexRangeStart, byte[] indexRangeEnd) { TableAdapter dataTable = getIndexTable(); KeyOnlyFilter selectRowId = new KeyOnlyFilter(dataTable, new CRange( indexRangeStart, indexRangeEnd)); return selectRowId.getResultIterator(); }  @Override void handlePut(Put put); @Override SeekingCurrentIterator handleGet(byte[] indexRangeStart,
      byte[] indexRangeEnd);  }
@Test public void testGetAll() { SeekingCurrentIterator indexIterator = naiveIndex.handleGet(new byte[0], new byte[0]); int count = 0; while (indexIterator.hasNext()) { Result result = indexIterator.next(); count++; assertTrue(rowIdList.contains(result.getRecordId())); } assertTrue(count == 3); }
@Test public void testGetRange() { SeekingCurrentIterator indexIterator = naiveIndex.handleGet(cccRowId, cccRowId); int count = 0; while (indexIterator.hasNext()) { Result result = indexIterator.next(); count++; assertTrue(Bytes.compareTo(result.getRecordId(), cccRowId) == 0); } assertTrue(count == 1); }