org.infinispan.query.impl
Class AbstractIterator
java.lang.Object
org.infinispan.query.impl.AbstractIterator
- All Implemented Interfaces:
- Iterator, ListIterator, QueryIterator
- Direct Known Subclasses:
- EagerIterator, LazyIterator
public abstract class AbstractIterator
- extends Object
- implements QueryIterator
This is the abstract superclass of the 2 iterators. Since some of the methods have the same implementations they have
been put onto a separate class.
- Since:
- 4.0
- Author:
- Navin Surtani
- See Also:
EagerIterator
,
LazyIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected Object[] buffer
cache
protected Cache cache
index
protected int index
bufferIndex
protected int bufferIndex
max
protected int max
first
protected int first
fetchSize
protected int fetchSize
AbstractIterator
public AbstractIterator()
first
public void first()
- Description copied from interface:
QueryIterator
- Jumps to the first result
- Specified by:
first
in interface QueryIterator
last
public void last()
- Description copied from interface:
QueryIterator
- Jumps to the last result
- Specified by:
last
in interface QueryIterator
afterFirst
public void afterFirst()
- Description copied from interface:
QueryIterator
- Jumps to the one-after-the-first result
- Specified by:
afterFirst
in interface QueryIterator
beforeLast
public void beforeLast()
- Description copied from interface:
QueryIterator
- Jumps to the one-before-the-last result
- Specified by:
beforeLast
in interface QueryIterator
isFirst
public boolean isFirst()
- Specified by:
isFirst
in interface QueryIterator
- Returns:
- true if the current result is the first
isLast
public boolean isLast()
- Specified by:
isLast
in interface QueryIterator
- Returns:
- true if the current result is the last
isAfterFirst
public boolean isAfterFirst()
- Specified by:
isAfterFirst
in interface QueryIterator
- Returns:
- true if the current result is one after the first
isBeforeLast
public boolean isBeforeLast()
- Specified by:
isBeforeLast
in interface QueryIterator
- Returns:
- true if the current result is one before the last
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interface ListIterator
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- Specified by:
hasNext
in interface ListIterator
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.