org.apache.lucene.facet

## Class FacetsCollector.Docs

- java.lang.Object
- - org.apache.lucene.facet.FacetsCollector.Docs

- Enclosing class:
    FacetsCollector

      protected abstract static class FacetsCollector.Docs
      extends Object

  Used during collection to record matching docs and then return a `DocIdSet` that contains them.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FacetsCollector.Docs()` Solr constructor.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | `addDoc(int docId)` Record the given document.
    `abstract DocIdSet` | `getDocIdSet()` Return the `DocIdSet` which contains all the recorded docs.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FacetsCollector.Docs

          public FacetsCollector.Docs()

      Solr constructor.

  - ### Method Detail

    - #### addDoc

          public abstract void addDoc(int docId)
                               throws IOException

      Record the given document.
      Throws:
        `IOException`

    - #### getDocIdSet

          public abstract DocIdSet getDocIdSet()

      Return the `DocIdSet` which contains all the recorded docs.

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.