org.hibernate.search.filter.impl

## Class AndDocIdSet

- java.lang.Object
- - org.apache.lucene.search.DocIdSet
  - - org.hibernate.search.filter.impl.AndDocIdSet

- All Implemented Interfaces:
    Accountable

      public class AndDocIdSet
      extends DocIdSet

  A DocIdSet built as applying "AND" operation to a list of other DocIdSet(s). The DocIdSetIterator returned will return only document ids contained in all DocIdSet(s) handed to the constructor.
  Author:
    Sanne Grinovero, Hardy Ferentschik

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static DocIdSet` | `EMPTY_DOCIDSET`

    - ### Fields inherited from class org.apache.lucene.search.DocIdSet

      `EMPTY`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AndDocIdSet(List<DocIdSet> andedDocIdSets, int maxDocs)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isCacheable()`
    `DocIdSetIterator` | `iterator()`
    `long` | `ramBytesUsed()`

    - ### Methods inherited from class org.apache.lucene.search.DocIdSet

      `bits, getChildResources`

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

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

- - ### Field Detail

    - #### EMPTY_DOCIDSET

          public static final DocIdSet EMPTY_DOCIDSET

  - ### Constructor Detail

    - #### AndDocIdSet

          public AndDocIdSet(List<DocIdSet> andedDocIdSets,
                             int maxDocs)

  - ### Method Detail

    - #### iterator

          public DocIdSetIterator iterator()
                                    throws IOException

      Specified by:
        `iterator` in class `DocIdSet`
      Throws:
        `IOException`

    - #### isCacheable

          public boolean isCacheable()

      Overrides:
        `isCacheable` in class `DocIdSet`

    - #### ramBytesUsed

          public long ramBytesUsed()

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved