Package org.infinispan.query
Class Search
java.lang.Object
org.infinispan.query.Search
Entry point for performing Infinispan queries.
Provides the
QueryFactory that you use to build Ickle queries, continuous queries, and event filters for indexed and non-indexed caches.- Author:
- Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc., anistor@redhat.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletionStage<org.infinispan.query.core.stats.SearchStatisticsSnapshot>getClusteredSearchStatistics(Cache<?, ?> cache) Returns aggregated search statistics for all nodes in the cluster.static <K,V> ContinuousQuery<K, V> getContinuousQuery(Cache<K, V> cache) Obtains theContinuousQueryobject for the cache.static <K,V> Indexer getIndexer(Cache<K, V> cache) static QueryFactorygetQueryFactory(Cache<?, ?> cache) Obtains a query factory to build DSL-based Ickle queries.static <K,V> org.infinispan.query.core.stats.SearchStatistics getSearchStatistics(Cache<K, V> cache) Returns search statistics for the local node.static <K,V> CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(String queryString) Creates an event filter from an Ickle query string.static <K,V> CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(String queryString, Map<String, Object> namedParameters) Creates event filters from Ickle query strings.static <K,V> CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(Query<?> query) Creates event filters from Ickle query strings.
-
Method Details
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V, makeFilterObjectFilter.FilterResult> (String queryString) Creates an event filter from an Ickle query string. -
makeFilter
public static <K,V> CacheEventFilterConverter<K,V, makeFilterObjectFilter.FilterResult> (String queryString, Map<String, Object> namedParameters) Creates event filters from Ickle query strings. -
makeFilter
public static <K,V> CacheEventFilterConverter<K,V, makeFilterObjectFilter.FilterResult> (Query<?> query) Creates event filters from Ickle query strings. -
getQueryFactory
Obtains a query factory to build DSL-based Ickle queries. -
getContinuousQuery
Obtains theContinuousQueryobject for the cache. -
getIndexer
- Returns:
- Obtains the
Indexerinstance for the cache. - Since:
- 11.0
-
getSearchStatistics
public static <K,V> org.infinispan.query.core.stats.SearchStatistics getSearchStatistics(Cache<K, V> cache) Returns search statistics for the local node. -
getClusteredSearchStatistics
public static CompletionStage<org.infinispan.query.core.stats.SearchStatisticsSnapshot> getClusteredSearchStatistics(Cache<?, ?> cache) Returns aggregated search statistics for all nodes in the cluster.
-