org.apache.lucene.search
Class RemoteCachingWrapperFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- org.apache.lucene.search.RemoteCachingWrapperFilter
-
- All Implemented Interfaces:
- java.io.Serializable
public class RemoteCachingWrapperFilter extends Filter
Provides caching ofFilters 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 withCachingWrapperFilterto 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
-
-
Constructor Summary
Constructors Constructor and Description RemoteCachingWrapperFilter(Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.BitSetbits(IndexReader reader)Uses theFilterManagerto keep the cache for a filter on the searcher side of a remote connection.
-
-
-
Constructor Detail
-
RemoteCachingWrapperFilter
public RemoteCachingWrapperFilter(Filter filter)
-
-
Method Detail
-
bits
public java.util.BitSet bits(IndexReader reader) throws java.io.IOException
Uses theFilterManagerto keep the cache for a filter on the searcher side of a remote connection.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG