@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); }
@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);  }