Class IteratorSearchResponse

java.lang.Object
org.apache.maven.index.AbstractSearchResponse
org.apache.maven.index.IteratorSearchResponse
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<ArtifactInfo>

public class IteratorSearchResponse extends AbstractSearchResponse implements Iterable<ArtifactInfo>, Closeable
A Search Response for the "iterator-like" search request. The totalHitsCount reports total hits found on index, even if the set of ArtifactInfos are usually limited! On the flipside, the hitsCount is actually unknown, since this instance performs filtering on the fly, hence it does not know how many hits it will return ahead of time.
Author:
cstamas
  • Field Details

    • EMPTY_ITERATOR_RESULT_SET

      public static final IteratorResultSet EMPTY_ITERATOR_RESULT_SET
    • EMPTY_ITERATOR_SEARCH_RESPONSE

      @Deprecated public static final IteratorSearchResponse EMPTY_ITERATOR_SEARCH_RESPONSE
      Deprecated.
      Use empty(Query) instead.
      Empty search response.
    • TOO_MANY_HITS_ITERATOR_SEARCH_RESPONSE

      @Deprecated public static final 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.
      Too many search response.
  • Constructor Details

    • IteratorSearchResponse

      public IteratorSearchResponse(org.apache.lucene.search.Query query, int totalHits, IteratorResultSet results)
  • Method Details