public class Cursors
extends java.lang.Object
Cursors.| Modifier and Type | Class and Description |
|---|---|
static class |
Cursors.AbstractCursor
A Cursor implementation where the remove method throws an
UnsupportedOperationException.
|
static class |
Cursors.PathCursor
|
| Modifier and Type | Method and Description |
|---|---|
static Cursor |
newAncestorCursor(Cursor c,
int level,
QueryEngineSettings settings)
Returns a cursor wrapper, which returns the ancestor rows at the given
level of the wrapped cursor c. |
static Cursor |
newConcatCursor(java.util.List<Cursor> cursors,
QueryEngineSettings settings) |
static Cursor |
newIntersectionCursor(Cursor a,
Cursor b,
QueryEngineSettings settings) |
static Cursor |
newPathCursor(java.lang.Iterable<java.lang.String> paths,
QueryEngineSettings settings)
Creates a
Cursor over paths. |
static Cursor |
newPathCursorDistinct(java.lang.Iterable<java.lang.String> paths,
QueryEngineSettings settings)
Creates a
Cursor over paths, and make the result distinct. |
static Cursor |
newTraversingCursor(Filter filter,
NodeState rootState)
Returns a traversing cursor based on the path restriction in the given
Filter. |
public static Cursor newIntersectionCursor(Cursor a, Cursor b, QueryEngineSettings settings)
public static Cursor newConcatCursor(java.util.List<Cursor> cursors, QueryEngineSettings settings)
public static Cursor newPathCursor(java.lang.Iterable<java.lang.String> paths, QueryEngineSettings settings)
Cursor over paths.paths - the paths to iterate over (must return distinct paths)public static Cursor newPathCursorDistinct(java.lang.Iterable<java.lang.String> paths, QueryEngineSettings settings)
Cursor over paths, and make the result distinct.
The iterator might return duplicate pathspaths - the paths to iterate over (might contain duplicate entries)public static Cursor newTraversingCursor(Filter filter, NodeState rootState)
Filter.public static Cursor newAncestorCursor(Cursor c, int level, QueryEngineSettings settings)
level of the wrapped cursor c. With
level e.g. set to 1, the returned cursor
iterates over the parent rows of the passed cursor c. The
returned cursor guarantees distinct rows.c - the cursor to wrap.level - the ancestor level. Must be >= 1.c at level."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"