public Cursor getCursor() throws IOException { Index idx = getBestIndex(); Cursor cursor; CursorBuilder cb = table.newCursor(); if (idx == null) { cursor = cb.toCursor(); } else { cursor = cb.setIndex(idx).toCursor(); } cursor.setColumnMatcher(new ColumnMatcher()); return cursor; }