public static class ResultIterator.CachedIterator extends ResultIterator
ResultIterator.BufferedIterator, ResultIterator.CachedIterator, ResultIterator.EmptyIterator, ResultIterator.ListIterator, ResultIterator.SingleIterator
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList<ResultRow> |
cache |
ResultIterator |
iter |
int |
maxCacheSize |
int |
pointer |
Constructor and Description |
---|
CachedIterator(ResultIterator iter) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Finalizes the iterator and performs any cleanup needed.
|
boolean |
hasNext()
Checks if there is another row available.
|
ResultRow |
next()
Gets the next row in the results and moves the iterator forward one row.
|
void |
reset()
Resets the iterator to its initial position.
|
public java.util.ArrayList<ResultRow> cache
public int maxCacheSize
public ResultIterator iter
public int pointer
public CachedIterator(ResultIterator iter)
public boolean hasNext() throws QueryException
ResultIterator
hasNext
in class ResultIterator
QueryException
public ResultRow next() throws QueryException, java.util.NoSuchElementException
ResultIterator
next
in class ResultIterator
QueryException
java.util.NoSuchElementException
public void dispose() throws QueryException
ResultIterator
dispose
in class ResultIterator
QueryException
public void reset() throws QueryException
ResultIterator
reset
in class ResultIterator
QueryException
Copyright 2004-2015 Wandora Team