Class Search

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

@Deprecated(since="15.0", forRemoval=true) public final class Search extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
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 Type
    Method
    Description
    getClusteredSearchStatistics(org.infinispan.Cache<?,?> cache)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns aggregated search statistics for all nodes in the cluster.
    static <K,V> org.infinispan.commons.api.query.ContinuousQuery<K,V>
    getContinuousQuery(org.infinispan.Cache<K,V> cache)
    Deprecated, for removal: This API element is subject to removal in a future version.
    use BasicCache.continuousQuery() instead.
    static <K,V> Indexer
    getIndexer(org.infinispan.Cache<K,V> cache)
    Deprecated.
    Use Indexer.of(Cache) instead.
    static org.infinispan.query.dsl.QueryFactory
    getQueryFactory(org.infinispan.Cache<?,?> cache)
    Deprecated, for removal: This API element is subject to removal in a future version.
    static <K,V> SearchStatistics
    getSearchStatistics(org.infinispan.Cache<K,V> cache)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns search statistics for the local node.
    static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult>
    makeFilter(String queryString)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates an event filter from an Ickle query string.
    static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult>
    makeFilter(String queryString, Map<String,Object> namedParameters)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates event filters from Ickle query strings.
    static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult>
    makeFilter(org.infinispan.query.dsl.Query<?> query)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates event filters from Ickle query strings.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • makeFilter

      public static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(String queryString)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates an event filter from an Ickle query string.
    • makeFilter

      public static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(String queryString, Map<String,Object> namedParameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates event filters from Ickle query strings.
    • makeFilter

      public static <K,V> org.infinispan.notifications.cachelistener.filter.CacheEventFilterConverter<K, V, ObjectFilter.FilterResult> makeFilter(org.infinispan.query.dsl.Query<?> query)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates event filters from Ickle query strings.
    • getQueryFactory

      @Deprecated(forRemoval=true) public static org.infinispan.query.dsl.QueryFactory getQueryFactory(org.infinispan.Cache<?,?> cache)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Obtains a query factory to build DSL-based Ickle queries.
    • getContinuousQuery

      @Deprecated(since="14.0", forRemoval=true) public static <K,V> org.infinispan.commons.api.query.ContinuousQuery<K,V> getContinuousQuery(org.infinispan.Cache<K,V> cache)
      Deprecated, for removal: This API element is subject to removal in a future version.
      use BasicCache.continuousQuery() instead.
      Obtains the ContinuousQuery object for the cache.
    • getIndexer

      @Deprecated public static <K,V> Indexer getIndexer(org.infinispan.Cache<K,V> cache)
      Deprecated.
      Use Indexer.of(Cache) instead.
      Returns:
      Obtains the Indexer instance for the cache.
      Since:
      11.0
    • getSearchStatistics

      public static <K,V> SearchStatistics getSearchStatistics(org.infinispan.Cache<K,V> cache)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns search statistics for the local node.
    • getClusteredSearchStatistics

      public static CompletionStage<SearchStatisticsSnapshot> getClusteredSearchStatistics(org.infinispan.Cache<?,?> cache)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns aggregated search statistics for all nodes in the cluster.