T
- element type of the query resultspublic final class ResultIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ALL |
static int |
OFFSET_NONE |
Modifier and Type | Method and Description |
---|---|
static <T> java.util.Iterator<T> |
create(long offset,
long max,
java.util.Iterator<T> iterator)
Returns an iterator respecting the specified
offset and max . |
boolean |
hasNext() |
T |
next() |
void |
remove() |
public static final int OFFSET_NONE
public static final int MAX_ALL
public static <T> java.util.Iterator<T> create(long offset, long max, java.util.Iterator<T> iterator)
offset
and max
.T
- element typeoffset
- offset to start iteration at. Must be non negativemax
- maximum elements this iterator should return. Set to
MAX_ALL
for alliterator
- the underlying iteratorpublic boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.