Package org.infinispan.query
Class Search
- java.lang.Object
-
- org.infinispan.query.Search
-
public final class Search extends Object
Entry point for performing Infinispan queries. Provides theQueryFactory
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 theContinuousQuery
object for the cache.static <K,V>
IndexergetIndexer(Cache<K,V> cache)
static QueryFactory
getQueryFactory(Cache<?,?> cache)
Obtains a query factory to build DSL-based Ickle queries.static <K,V>
org.infinispan.query.core.stats.SearchStatisticsgetSearchStatistics(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 Detail
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(String queryString)
Creates an event filter from an Ickle query string.
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(String queryString, Map<String,Object> namedParameters)
Creates event filters from Ickle query strings.
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(Query<?> query)
Creates event filters from Ickle query strings.
-
getQueryFactory
public static QueryFactory getQueryFactory(Cache<?,?> cache)
Obtains a query factory to build DSL-based Ickle queries.
-
getContinuousQuery
public static <K,V> ContinuousQuery<K,V> getContinuousQuery(Cache<K,V> cache)
Obtains theContinuousQuery
object for the cache.
-
getIndexer
public static <K,V> Indexer getIndexer(Cache<K,V> cache)
- Returns:
- Obtains the
Indexer
instance 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.
-
-