org.alfresco.repo.search.impl.lucene
Class PagingLuceneResultSetRowIteratorImpl

java.lang.Object
  extended by org.alfresco.repo.search.impl.lucene.PagingLuceneResultSetRowIteratorImpl
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator

public class PagingLuceneResultSetRowIteratorImpl
extends java.lang.Object
implements java.util.ListIterator


Constructor Summary
PagingLuceneResultSetRowIteratorImpl(PagingLuceneResultSet resultSet)
          Create an iterator over the result set.
 
Method Summary
 void add(org.alfresco.service.cmr.search.ResultSetRow o)
           
 boolean allowsReverse()
           
 PagingLuceneResultSet getResultSet()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
protected  int moveToNextPosition()
           
protected  int moveToPreviousPosition()
           
 org.alfresco.service.cmr.search.ResultSetRow next()
           
 int nextIndex()
           
 org.alfresco.service.cmr.search.ResultSetRow previous()
           
 int previousIndex()
           
 void remove()
           
 void set(org.alfresco.service.cmr.search.ResultSetRow o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PagingLuceneResultSetRowIteratorImpl

public PagingLuceneResultSetRowIteratorImpl(PagingLuceneResultSet resultSet)
Create an iterator over the result set. Follows stadard ListIterator conventions

Parameters:
resultSet -
Method Detail

getResultSet

public PagingLuceneResultSet getResultSet()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface java.util.ListIterator

allowsReverse

public boolean allowsReverse()

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator

next

public org.alfresco.service.cmr.search.ResultSetRow next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator

moveToNextPosition

protected int moveToNextPosition()

previous

public org.alfresco.service.cmr.search.ResultSetRow previous()
Specified by:
previous in interface java.util.ListIterator

moveToPreviousPosition

protected int moveToPreviousPosition()

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface java.util.ListIterator

set

public void set(org.alfresco.service.cmr.search.ResultSetRow o)
Specified by:
set in interface java.util.ListIterator

add

public void add(org.alfresco.service.cmr.search.ResultSetRow o)
Specified by:
add in interface java.util.ListIterator


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.