Cursor execute() { QueryLimits settings = filter.getQueryLimits(); List<Iterable<String>> iterables = Lists.newArrayList(); for (IndexStoreStrategy s : strategies) { iterables.add(s.query(filter, name, definition, values)); } Cursor cursor = Cursors.newPathCursor(Iterables.concat(iterables), settings); if (depth > 1) { cursor = Cursors.newAncestorCursor(cursor, depth - 1, settings); } return cursor; }
Cursor execute() { if (deprecated) { LOG.warn("This index is deprecated: {}; it is used for query {}. " + "Please change the query or the index definitions.", name, filter); } QueryLimits settings = filter.getQueryLimits(); List<Iterable<String>> iterables = Lists.newArrayList(); for (IndexStoreStrategy s : strategies) { iterables.add(s.query(filter, name, definition, values)); } Cursor cursor = Cursors.newPathCursor(Iterables.concat(iterables), settings); if (depth > 1) { cursor = Cursors.newAncestorCursor(cursor, depth - 1, settings); } return cursor; }
Cursor execute() { if (deprecated) { LOG.warn("This index is deprecated: {}; it is used for query {}. " + "Please change the query or the index definitions.", name, filter); } QueryLimits settings = filter.getQueryLimits(); List<Iterable<String>> iterables = Lists.newArrayList(); for (IndexStoreStrategy s : strategies) { iterables.add(s.query(filter, name, definition, values)); } Cursor cursor = Cursors.newPathCursor(Iterables.concat(iterables), settings); if (depth > 1) { cursor = Cursors.newAncestorCursor(cursor, depth - 1, settings); } return cursor; }