public interface FilterCachingStrategy
Modifier and Type | Method and Description |
---|---|
default void |
addCachedFilter(FilterKey key,
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,
Query filter)
Propose a candidate filter for caching.
|
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 configurationQuery getCachedFilter(FilterKey key)
key
- the filter key@Deprecated default void addCachedFilter(FilterKey key, Filter filter)
addCachedFilter(FilterKey, Query)
instead.key
- the filter keyfilter
- the filter to cacheCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved