Class Search

java.lang.Object
org.infinispan.query.Search

public final class Search extends Object
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 Details

    • 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 the ContinuousQuery 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.