Class LRUQueryCache.CacheAndCount

  • All Implemented Interfaces:
    Accountable
    Enclosing class:
    LRUQueryCache

    protected static class LRUQueryCache.CacheAndCount
    extends java.lang.Object
    implements Accountable
    Cache of doc ids with a count.
    • Field Detail

      • BASE_RAM_BYTES_USED

        private static final long BASE_RAM_BYTES_USED
      • count

        private final int count
    • Constructor Detail

      • CacheAndCount

        public CacheAndCount​(DocIdSet cache,
                             int count)
    • Method Detail

      • iterator

        public DocIdSetIterator iterator()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • count

        public int count()
      • ramBytesUsed

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