Package org.apache.lucene.search
Class RemoteCachingWrapperFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- org.apache.lucene.search.RemoteCachingWrapperFilter
-
- All Implemented Interfaces:
Serializable
@Deprecated public class RemoteCachingWrapperFilter extends org.apache.lucene.search.Filter
Deprecated.This package (all of contrib/remote) will be removed in 4.0.Provides caching ofFilter
s 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 withCachingWrapperFilter
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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.search.Filter
filter
Deprecated.
-
Constructor Summary
Constructors Constructor Description RemoteCachingWrapperFilter(org.apache.lucene.search.Filter filter)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.lucene.search.DocIdSet
getDocIdSet(org.apache.lucene.index.IndexReader reader)
Deprecated.Uses theFilterManager
to keep the cache for a filter on the searcher side of a remote connection.
-
-
-
Method Detail
-
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOException
Deprecated.Uses theFilterManager
to keep the cache for a filter on the searcher side of a remote connection.- Specified by:
getDocIdSet
in classorg.apache.lucene.search.Filter
- Parameters:
reader
- the index reader for the Filter- Returns:
- the DocIdSet
- Throws:
IOException
-
-