public interface FilterCachingStrategy
| Modifier and Type | Method and Description |
|---|---|
default void |
addCachedFilter(FilterKey key,
org.apache.lucene.search.Filter filter)
Deprecated.
This method is not used by Hibernate Search anymore
and will be removed in a future version. Please implement
addCachedFilter(FilterKey, Query) instead. |
default void |
addCachedFilter(FilterKey key,
org.apache.lucene.search.Query filter)
Propose a candidate filter for caching.
|
org.apache.lucene.search.Query |
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.
|
void initialize(Properties properties)
properties - the caching strategy configurationorg.apache.lucene.search.Query getCachedFilter(FilterKey key)
key - the filter key@Deprecated default void addCachedFilter(FilterKey key, org.apache.lucene.search.Filter filter)
addCachedFilter(FilterKey, Query) instead.key - the filter keyfilter - the filter to cachedefault void addCachedFilter(FilterKey key, org.apache.lucene.search.Query filter)
key - the filter keyfilter - the filter to cacheCopyright © 2006–2017 Hibernate. All rights reserved.