Class ResultIterator<T>
java.lang.Object
org.apache.jackrabbit.oak.security.user.query.ResultIterator<T>
- Type Parameters:
T
- element type of the query results
- All Implemented Interfaces:
Iterator<T>
Implements a query result iterator which only returns a maximum number of
element from an underlying iterator starting at a given offset.
-
Field Details
-
OFFSET_NONE
public static final int OFFSET_NONE- See Also:
-
MAX_ALL
public static final int MAX_ALL- See Also:
-
-
Method Details
-
create
Returns an iterator respecting the specifiedoffset
andmax
.- Type Parameters:
T
- element type- Parameters:
offset
- offset to start iteration at. Must be non negativemax
- maximum elements this iterator should return. Set toMAX_ALL
for alliterator
- the underlying iterator- Returns:
- an iterator which only returns the elements in the given bounds
-
hasNext
public boolean hasNext() -
next
-
remove
public void remove()
-