org.apache.lucene.search

Class CachingWrapperFilter

Implemented Interfaces:
java.io.Serializable

public class CachingWrapperFilter
extends Filter

Wraps another filters 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)
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
Overrides:
bits in interface Filter

toString

public String toString()

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