T
- public final class ResultIterator<T>
extends java.lang.Object
implements com.mysema.commons.lang.CloseableIterator<T>
CloseableIterator
implementation for Lucene query resultsConstructor and Description |
---|
ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs,
int offset,
org.apache.lucene.search.IndexSearcher searcher,
FieldSelector fieldSelector,
com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer) |
public ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs, int offset, org.apache.lucene.search.IndexSearcher searcher, @Nullable FieldSelector fieldSelector, com.google.common.base.Function<org.apache.lucene.document.Document,T> transformer)
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
public void close()
close
in interface com.mysema.commons.lang.CloseableIterator<T>
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2007-2013 Mysema Ltd. All Rights Reserved.