@Test public void testCursor() { final Rnd rnd = new Rnd(); for (int i = 0; i < 10; i++) { int n = rnd.nextPositiveInt() % 1024; int m = 0; RowCursor cursor = reader.getCursor(true, 0, 0, n); while (cursor.hasNext()) { Assert.assertEquals(m++, cursor.next()); } Assert.assertEquals(n + 1, m); } }
@Override public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) { final NullCursor cursor = getCursor(cachedInstance); cursor.max = maxValue + 1; cursor.value = 0; return cursor; }
BitmapIndexFwdNullReader implements BitmapIndexReader { @Override public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) { final NullCursor cursor = getCursor(cachedInstance); cursor.max = maxValue + 1; cursor.value = 0; return cursor; } }
BitmapIndexFwdNullReader implements BitmapIndexReader { @Override public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) { final NullCursor cursor = getCursor(cachedInstance); cursor.max = maxValue + 1; cursor.value = 0; return cursor; }  }
BitmapIndexFwdNullReader implements BitmapIndexReader { @Override public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) { final NullCursor cursor = getCursor(cachedInstance); cursor.max = maxValue + 1; cursor.value = 0; return cursor; }  @Override RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue); @Override int getKeyCount(); @Override boolean isOpen(); }
BitmapIndexFwdNullReader implements BitmapIndexReader { @Override public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) { final NullCursor cursor = getCursor(cachedInstance); cursor.max = maxValue + 1; cursor.value = 0; return cursor; }  @Override RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue); @Override int getKeyCount(); @Override boolean isOpen();  }