|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.Filter
org.apache.lucene.search.RemoteCachingWrapperFilter
public class RemoteCachingWrapperFilter
Provides caching of Filter
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.
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));
Field Summary | |
---|---|
protected Filter |
filter
|
Constructor Summary | |
---|---|
RemoteCachingWrapperFilter(Filter filter)
|
Method Summary | |
---|---|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Filter filter
Constructor Detail |
---|
public RemoteCachingWrapperFilter(Filter filter)
Method Detail |
---|
public java.util.BitSet bits(IndexReader reader) throws java.io.IOException
FilterManager
to keep the cache for a filter on the
searcher side of a remote connection.
bits
in class Filter
reader
- the index reader for the Filter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |