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 void |
checkMemoryLimit(long count,
QueryLimits settings) |
static void |
checkReadLimit(long count,
QueryLimits settings) |
static Cursor |
newAncestorCursor(Cursor c,
int level,
QueryLimits 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,
QueryLimits settings) |
static Cursor |
newIntersectionCursor(Cursor a,
Cursor b,
QueryLimits settings) |
static Cursor |
newPathCursor(java.lang.Iterable<java.lang.String> paths,
QueryLimits settings)
Creates a
Cursor over paths. |
static Cursor |
newPathCursorDistinct(java.lang.Iterable<java.lang.String> paths,
QueryLimits 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 void checkMemoryLimit(long count,
QueryLimits settings)
public static void checkReadLimit(long count,
QueryLimits settings)
public static Cursor newIntersectionCursor(Cursor a, Cursor b, QueryLimits settings)
public static Cursor newConcatCursor(java.util.List<Cursor> cursors, QueryLimits settings)
public static Cursor newPathCursor(java.lang.Iterable<java.lang.String> paths, QueryLimits 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, QueryLimits 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, QueryLimits 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 - 2023 Adobe. All Rights Reserved