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
Constructors Constructor Description PagingLuceneResultSetRowIteratorImpl(PagingLuceneResultSet resultSet)Create an iterator over the result set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ResultSetRow o)booleanallowsReverse()PagingLuceneResultSetgetResultSet()booleanhasNext()booleanhasPrevious()protected intmoveToNextPosition()protected intmoveToPreviousPosition()ResultSetRownext()intnextIndex()ResultSetRowprevious()intpreviousIndex()voidremove()voidset(ResultSetRow o)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
PagingLuceneResultSetRowIteratorImpl
public PagingLuceneResultSetRowIteratorImpl(PagingLuceneResultSet resultSet)
Create an iterator over the result set. Follows stadard ListIterator conventions- Parameters:
resultSet- PagingLuceneResultSet
-
-
Method Detail
-
getResultSet
public PagingLuceneResultSet 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
public ResultSetRow next()
- Specified by:
nextin interfaceIterator<ResultSetRow>- Specified by:
nextin interfaceListIterator<ResultSetRow>
-
moveToNextPosition
protected int moveToNextPosition()
-
previous
public ResultSetRow 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
public void set(ResultSetRow o)
- Specified by:
setin interfaceListIterator<ResultSetRow>
-
add
public void add(ResultSetRow o)
- Specified by:
addin interfaceListIterator<ResultSetRow>
-
-