Documentation of 'org.apache.lucene.search.RemoteCachingWrapperFilter' Java class
RemoteCachingWrapperFilter
org.apache.lucene.search

Class RemoteCachingWrapperFilter

  • All Implemented Interfaces:
    java.io.Serializable


    public class RemoteCachingWrapperFilter
    extends Filter
    Provides caching of Filters themselves on the remote end of an RMI connection. The cache is keyed on Filter's hashCode(), so if it sees the same filter twice it will reuse the original version.

    NOTE: This does NOT cache the Filter bits, but rather the Filter itself. Thus, this works hand-in-hand with CachingWrapperFilter to keep both file Filter cache and the Filter bits on the remote end, close to the searcher.

    Usage:

    To cache a result you must do something like RemoteCachingWrapperFilter f = new RemoteCachingWrapperFilter(new CachingWrapperFilter(myFilter));

    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.BitSet bits(IndexReader reader)
      Uses the FilterManager to keep the cache for a filter on the searcher side of a remote connection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteCachingWrapperFilter

        public RemoteCachingWrapperFilter(Filter filter)
    • Method Detail

      • bits

        public java.util.BitSet bits(IndexReader reader)
                              throws java.io.IOException
        Uses the FilterManager to keep the cache for a filter on the searcher side of a remote connection.
        Specified by:
        bits in class Filter
        Parameters:
        reader - the index reader for the Filter
        Returns:
        the bitset
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.