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.
|
default org.apache.lucene.search.Query |
getCachedFilter(FilterKey key)
Retrieve the cached filter for a given key or null if not cached.
|
default org.apache.lucene.search.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 org.apache.lucene.search.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 org.apache.lucene.search.Filter getCachedFilter$$bridge$$FilterReturnType(FilterKey key)
getCachedFilter(FilterKey)
instead.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-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.