org.infinispan.query.impl
Class AbstractIterator
java.lang.Object
org.infinispan.query.impl.AbstractIterator
- All Implemented Interfaces:
- Iterator<Object>, ResultIterator
- Direct Known Subclasses:
- EagerIterator, LazyIterator
public abstract class AbstractIterator
- extends Object
- implements ResultIterator
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, Marko Luksa
- See Also:
EagerIterator
,
LazyIterator
Field Summary |
protected Object[] |
buffer
|
protected int |
bufferIndex
The index at which the buffer starts (the global index of the element at buffer[0]) |
protected int |
fetchSize
|
protected int |
index
Index of the element that will be returned by next() |
protected int |
max
|
Method Summary |
boolean |
hasNext()
|
protected abstract org.hibernate.search.query.engine.spi.EntityInfo |
loadEntityInfo(int index)
|
Object |
next()
|
void |
remove()
This method is not supported and should not be used. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected final Object[] buffer
index
protected int index
- Index of the element that will be returned by next()
bufferIndex
protected int bufferIndex
- The index at which the buffer starts (the global index of the element at buffer[0])
max
protected int max
fetchSize
protected final int fetchSize
AbstractIterator
protected AbstractIterator(QueryResultLoader resultLoader,
int fetchSize)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Object>
remove
public void remove()
- This method is not supported and should not be used. Use cache.remove() instead.
- Specified by:
remove
in interface Iterator<Object>
next
public Object next()
- Specified by:
next
in interface Iterator<Object>
loadEntityInfo
protected abstract org.hibernate.search.query.engine.spi.EntityInfo loadEntityInfo(int index)
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.