com.mysema.query.lucene
Class DocumentIterator
java.lang.Object
com.mysema.query.lucene.DocumentIterator
- All Implemented Interfaces:
- com.mysema.commons.lang.CloseableIterator<org.apache.lucene.document.Document>, Closeable, Iterator<org.apache.lucene.document.Document>
public final class DocumentIterator
- extends 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentIterator
public DocumentIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs,
int offset,
org.apache.lucene.search.Searcher searcher)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<org.apache.lucene.document.Document>
next
public org.apache.lucene.document.Document next()
- Specified by:
next
in interface Iterator<org.apache.lucene.document.Document>
remove
public void remove()
- Specified by:
remove
in interface 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 Closeable
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.