public class CachingSpanFilter extends SpanFilter
Modifier and Type | Field and Description |
---|---|
protected Map |
cache
A transient Filter cache.
|
protected SpanFilter |
filter |
Constructor and Description |
---|
CachingSpanFilter(SpanFilter filter) |
Modifier and Type | Method and Description |
---|---|
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(Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
int |
hashCode() |
String |
toString() |
protected SpanFilter filter
protected transient Map cache
RemoteSearchable
use
RemoteCachingWrapperFilter
instead.public CachingSpanFilter(SpanFilter filter)
filter
- Filter to cache results ofpublic BitSet bits(IndexReader reader) throws IOException
getDocIdSet(IndexReader)
instead.bits
in class Filter
IOException
public DocIdSet getDocIdSet(IndexReader reader) throws IOException
getDocIdSet
in class Filter
IOException
DocIdBitSet
public SpanFilterResult bitSpans(IndexReader reader) throws IOException
SpanFilter
bitSpans
in class SpanFilter
reader
- The IndexReader
to load position and DocIdSet information fromSpanFilterResult
IOException
- if there was an issue accessing the necessary informationCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.