public class CachingSpanFilter extends SpanFilter
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map |
cache
A transient Filter cache.
|
protected SpanFilter |
filter |
| Constructor and Description |
|---|
CachingSpanFilter(SpanFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
java.util.BitSet |
bits(IndexReader reader)
Deprecated.
Use
getDocIdSet(IndexReader) instead. |
SpanFilterResult |
bitSpans(IndexReader reader)
Returns a SpanFilterResult with true for documents which should be permitted in
search results, and false for those that should not and Spans for where the true docs match.
|
boolean |
equals(java.lang.Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
int |
hashCode() |
java.lang.String |
toString() |
protected SpanFilter filter
protected transient java.util.Map cache
RemoteSearchable use
RemoteCachingWrapperFilter instead.public CachingSpanFilter(SpanFilter filter)
filter - Filter to cache results ofpublic java.util.BitSet bits(IndexReader reader) throws java.io.IOException
getDocIdSet(IndexReader) instead.public DocIdSet getDocIdSet(IndexReader reader) throws java.io.IOException
getDocIdSet in class Filterjava.io.IOExceptionDocIdBitSetpublic SpanFilterResult bitSpans(IndexReader reader) throws java.io.IOException
SpanFilterbitSpans in class SpanFilterreader - The IndexReader to load position and DocIdSet information fromSpanFilterResultjava.io.IOException - if there was an issue accessing the necessary informationpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.