@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); }
@Override public SeekingCurrentIterator handleGet(byte[] indexRangeStart, byte[] indexRangeEnd) { TableAdapter dataTable = getIndexTable(); KeyOnlyFilter selectRowId = new KeyOnlyFilter(dataTable, new CRange( indexRangeStart, indexRangeEnd)); return selectRowId.getResultIterator(); }
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(); } }
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(); }  }
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); }
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);  }