org.apache.lucene.search

Class CachingWrapperFilter

Implemented Interfaces:
Serializable

public class CachingWrapperFilter
extends Filter

Wraps another filter's result and caches it. The caching behavior is like 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.
See Also:
Serialized Form

Constructor Summary

CachingWrapperFilter(Filter filter)

Method Summary

BitSet
bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
boolean
equals(Object o)
int
hashCode()
String
toString()

Methods inherited from class org.apache.lucene.search.Filter

bits

Constructor Details

CachingWrapperFilter

public CachingWrapperFilter(Filter filter)
Parameters:
filter - Filter to cache results of

Method Details

bits

public BitSet bits(IndexReader reader)
            throws IOException
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
Overrides:
bits in interface Filter

equals

public boolean equals(Object o)

hashCode

public int hashCode()

toString

public String toString()

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.