Class DocsWithFieldSet

  • All Implemented Interfaces:
    Accountable

    final class DocsWithFieldSet
    extends DocIdSet
    Accumulator for documents that have a value for a field. This is optimized for the case that all documents have a value.
    • Field Detail

      • BASE_RAM_BYTES_USED

        private static long BASE_RAM_BYTES_USED
      • cost

        private int cost
      • lastDocId

        private int lastDocId
    • Constructor Detail

      • DocsWithFieldSet

        DocsWithFieldSet()
    • Method Detail

      • add

        void add​(int docID)
      • ramBytesUsed

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