com.mysema.query.lucene
Class DocumentIterator

java.lang.Object
  extended by com.mysema.query.lucene.DocumentIterator
All Implemented Interfaces:
com.mysema.commons.lang.CloseableIterator<org.apache.lucene.document.Document>, java.io.Closeable, java.util.Iterator<org.apache.lucene.document.Document>

public final class DocumentIterator
extends java.lang.Object
implements com.mysema.commons.lang.CloseableIterator<org.apache.lucene.document.Document>


Constructor Summary
DocumentIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs, int offset, org.apache.lucene.search.Searcher searcher)
           
 
Method Summary
 void close()
           
 boolean hasNext()
           
 org.apache.lucene.document.Document next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentIterator

public DocumentIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs,
                        int offset,
                        org.apache.lucene.search.Searcher searcher)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<org.apache.lucene.document.Document>

next

public org.apache.lucene.document.Document next()
Specified by:
next in interface java.util.Iterator<org.apache.lucene.document.Document>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<org.apache.lucene.document.Document>

close

public void close()
Specified by:
close in interface com.mysema.commons.lang.CloseableIterator<org.apache.lucene.document.Document>
Specified by:
close in interface java.io.Closeable


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.