public class IteratorSearchResponse extends AbstractSearchResponse implements Iterable<ArtifactInfo>, Closeable
Modifier and Type | Field and Description |
---|---|
static IteratorResultSet |
EMPTY_ITERATOR_RESULT_SET |
static IteratorSearchResponse |
EMPTY_ITERATOR_SEARCH_RESPONSE
Deprecated.
Use
empty(Query) instead. |
static IteratorSearchResponse |
TOO_MANY_HITS_ITERATOR_SEARCH_RESPONSE
Deprecated.
Left here for backward compatibility, but since version 4.1.0 (see MINDEXER-14) there is NO notion of
"hit limit" anymore.
|
Constructor and Description |
---|
IteratorSearchResponse(org.apache.lucene.search.Query query,
int totalHits,
IteratorResultSet results) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Frees any resource associated with this response.
|
static IteratorSearchResponse |
empty(org.apache.lucene.search.Query q) |
IteratorResultSet |
getResults() |
int |
getTotalProcessedArtifactInfoCount()
A helper method delegating the call to the IteratorResultSet.
|
IteratorResultSet |
iterator() |
getQuery, getReturnedHitsCount, getTotalHits, getTotalHitsCount, isHitLimitExceeded
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final IteratorResultSet EMPTY_ITERATOR_RESULT_SET
public static final IteratorSearchResponse EMPTY_ITERATOR_SEARCH_RESPONSE
empty(Query)
instead.public static final IteratorSearchResponse TOO_MANY_HITS_ITERATOR_SEARCH_RESPONSE
public IteratorSearchResponse(org.apache.lucene.search.Query query, int totalHits, IteratorResultSet results)
public IteratorResultSet getResults()
public IteratorResultSet iterator()
iterator
in interface Iterable<ArtifactInfo>
public void close() throws IOException
AbstractSearchResponse
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSearchResponse
IOException
public int getTotalProcessedArtifactInfoCount()
public static final IteratorSearchResponse empty(org.apache.lucene.search.Query q)
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.