org.apache.lucene.search

Class CachingWrapperFilter

public class CachingWrapperFilter extends Filter

Wraps another filter'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 Mapcache
A transient Filter cache.
protected Filterfilter
Constructor Summary
CachingWrapperFilter(Filter filter)
Method Summary
BitSetbits(IndexReader reader)
booleanequals(Object o)
inthashCode()
StringtoString()

Field Detail

cache

protected transient Map cache
A transient Filter cache. To cache Filters even when using RemoteSearchable use RemoteCachingWrapperFilter instead.

filter

protected Filter filter

Constructor Detail

CachingWrapperFilter

public CachingWrapperFilter(Filter filter)

Parameters: filter Filter to cache results of

Method Detail

bits

public BitSet bits(IndexReader reader)

equals

public boolean equals(Object o)

hashCode

public int hashCode()

toString

public String toString()
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.