Class BitsetFilterCache

  • All Implemented Interfaces:, java.lang.AutoCloseable, org.apache.lucene.index.IndexReader.ClosedListener, RemovalListener<org.apache.lucene.index.IndexReader.CacheKey,​Cache<,​BitsetFilterCache.Value>>, IndexComponent

    public final class BitsetFilterCache
    extends AbstractIndexComponent
    implements org.apache.lucene.index.IndexReader.ClosedListener, RemovalListener<org.apache.lucene.index.IndexReader.CacheKey,​Cache<,​BitsetFilterCache.Value>>,
    This is a cache for BitDocIdSet based filters and is unbounded by size or time.

    Use this cache with care, only components that require that a filter is to be materialized as a BitDocIdSet and require that it should always be around should use this cache, otherwise the QueryCache should be used instead.

    • Field Detail


        public static final Setting<java.lang.Boolean> INDEX_LOAD_RANDOM_ACCESS_FILTERS_EAGERLY_SETTING
    • Method Detail

      • getBitSetProducer

        public getBitSetProducer​( query)
      • onClose

        public void onClose​(org.apache.lucene.index.IndexReader.CacheKey ownerCoreCacheKey)
        Specified by:
        onClose in interface org.apache.lucene.index.IndexReader.ClosedListener
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface
      • clear

        public void clear​(java.lang.String reason)