org.hibernate.search.filter
Interface FilterCachingStrategy

All Known Implementing Classes:
MRUFilterCachingStrategy

public interface FilterCachingStrategy

Defines the caching filter strategy implementations of getCachedFilter and addCachedFilter must be thread-safe

Author:
Emmanuel Bernard

Method Summary
 void addCachedFilter(FilterKey key, org.apache.lucene.search.Filter filter)
          Propose a candidate filter for caching
 org.apache.lucene.search.Filter getCachedFilter(FilterKey key)
          Retrieve the cached filter for a given key or null if not cached
 void initialize(Properties properties)
          initialize the strategy from the properties The Properties must not be changed
 

Method Detail

initialize

void initialize(Properties properties)
initialize the strategy from the properties The Properties must not be changed


getCachedFilter

org.apache.lucene.search.Filter getCachedFilter(FilterKey key)
Retrieve the cached filter for a given key or null if not cached


addCachedFilter

void addCachedFilter(FilterKey key,
                     org.apache.lucene.search.Filter filter)
Propose a candidate filter for caching



Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved