T
- public final class ResultIterator<T>
extends java.lang.Object
implements com.mysema.commons.lang.CloseableIterator<T>
ResultIterator
is a CloseableIterator
implementation for Lucene query resultsConstructor and Description |
---|
ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs,
int offset,
org.apache.lucene.search.IndexSearcher searcher,
@Nullable FieldSelector fieldSelector,
java.util.function.Function<org.apache.lucene.document.Document,T> transformer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
public ResultIterator(org.apache.lucene.search.ScoreDoc[] scoreDocs, int offset, org.apache.lucene.search.IndexSearcher searcher, @Nullable @Nullable FieldSelector fieldSelector, java.util.function.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–2021 Querydsl. All rights reserved.