Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
public class: CachingSpanFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.search.Filter
      org.apache.lucene.search.SpanFilter
         org.apache.lucene.search.CachingSpanFilter

All Implemented Interfaces:
    Serializable

Wraps another SpanFilter's result and caches it. The purpose is to allow filters to simply filter, and then wrap with this class to add caching.
Field Summary
protected  SpanFilter filter     
protected transient  Map cache    A transient Filter cache. To cache Filters even when using org.apache.lucene.search.RemoteSearchable use org.apache.lucene.search.RemoteCachingWrapperFilter instead. 
Constructor:
 public CachingSpanFilter(SpanFilter filter) 
    Parameters:
    filter - Filter to cache results of
Method from org.apache.lucene.search.CachingSpanFilter Summary:
bitSpans,   bits,   equals,   hashCode,   toString
Methods from org.apache.lucene.search.SpanFilter:
bitSpans
Methods from org.apache.lucene.search.Filter:
bits
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.CachingSpanFilter Detail:
 public SpanFilterResult bitSpans(IndexReader reader) throws IOException 
 public BitSet bits(IndexReader reader) throws IOException 
 public boolean equals(Object o) 
 public int hashCode() 
 public String toString()