Class PagingLuceneResultSetRowIteratorImpl
java.lang.Object
org.alfresco.repo.search.impl.lucene.PagingLuceneResultSetRowIteratorImpl
- All Implemented Interfaces:
Iterator<ResultSetRow>,ListIterator<ResultSetRow>
public class PagingLuceneResultSetRowIteratorImpl
extends Object
implements ListIterator<ResultSetRow>
- Author:
- andyh
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an iterator over the result set. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ResultSetRow o) booleanbooleanhasNext()booleanprotected intprotected intnext()intprevious()intvoidremove()voidset(ResultSetRow o) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PagingLuceneResultSetRowIteratorImpl
Create an iterator over the result set. Follows stadard ListIterator conventions- Parameters:
resultSet- PagingLuceneResultSet
-
-
Method Details
-
getResultSet
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<ResultSetRow>- Specified by:
hasNextin interfaceListIterator<ResultSetRow>
-
allowsReverse
public boolean allowsReverse() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<ResultSetRow>
-
next
- Specified by:
nextin interfaceIterator<ResultSetRow>- Specified by:
nextin interfaceListIterator<ResultSetRow>
-
moveToNextPosition
protected int moveToNextPosition() -
previous
- Specified by:
previousin interfaceListIterator<ResultSetRow>
-
moveToPreviousPosition
protected int moveToPreviousPosition() -
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<ResultSetRow>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<ResultSetRow>
-
remove
public void remove()- Specified by:
removein interfaceIterator<ResultSetRow>- Specified by:
removein interfaceListIterator<ResultSetRow>
-
set
- Specified by:
setin interfaceListIterator<ResultSetRow>
-
add
- Specified by:
addin interfaceListIterator<ResultSetRow>
-