Class IntArrayDocIdSet

java.lang.Object
org.apache.lucene.search.DocIdSet
org.apache.lucene.util.IntArrayDocIdSet
All Implemented Interfaces:
Accountable

final class IntArrayDocIdSet extends DocIdSet
  • Field Details

    • BASE_RAM_BYTES_USED

      private static final long BASE_RAM_BYTES_USED
    • docs

      private final int[] docs
    • length

      private final int length
  • Constructor Details

    • IntArrayDocIdSet

      IntArrayDocIdSet(int[] docs, int length)
  • Method Details

    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Return the memory usage of this object in bytes. Negative values are illegal.
    • iterator

      public DocIdSetIterator iterator() throws IOException
      Description copied from class: DocIdSet
      Provides a DocIdSetIterator to access the set. This implementation can return null if there are no docs that match.
      Specified by:
      iterator in class DocIdSet
      Throws:
      IOException