org.apache.lucene.search

Class CachingWrapperFilter

public class CachingWrapperFilter extends Filter

Wraps another filter's result and caches it. The caching behavior is like {@link QueryFilter}. The purpose is to allow filters to simply filter, and then wrap with this class to add caching, keeping the two concerns decoupled yet composable.
Constructor Summary
CachingWrapperFilter(Filter filter)
Method Summary
BitSetbits(IndexReader reader)
booleanequals(Object o)
inthashCode()
StringtoString()

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-2008 Apache Software Foundation. All Rights Reserved.