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.
|
default Query |
getCachedFilter(FilterKey key)
Retrieve the cached filter for a given key or null if not cached.
|
default Filter |
getCachedFilter$$bridge$$FilterReturnType(FilterKey key)
Deprecated.
This method is only here so that Hibernate Search build tools can generate bytecode
allowing to preserve binary compatibility with applications written for Hibernate Search 5.5.
It will be removed in a future version. Please implement
getCachedFilter(FilterKey) instead. |
void |
initialize(Properties properties)
Initialize the strategy from the properties.
|
void initialize(Properties properties)
properties
- the caching strategy configurationdefault Query getCachedFilter(FilterKey key)
Caution: this method has a default implementation for technical reasons, but it must be implemented.
key
- the filter key@Deprecated default Filter getCachedFilter$$bridge$$FilterReturnType(FilterKey key)
getCachedFilter(FilterKey)
instead.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-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.