Package org.infinispan.query
Class Search
- java.lang.Object
-
- org.infinispan.query.Search
-
public final class Search extends Object
This is the entry point for the Infinispan query API. It's allows you the locate theSearchManager
for a cache and start building Lucene queries (with or without the help of Hibernate Search DSL) for indexed caches. It also provides theQueryFactory
which is your starting point for building DSL-based or query string based Ickle queries, continuous queries and event filters, for both indexed and unindexed caches.- Author:
- Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc., anistor@redhat.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <K,V>
ContinuousQuery<K,V>getContinuousQuery(Cache<K,V> cache)
Obtain theContinuousQuery
object for a cache.static <K,V>
IndexergetIndexer(Cache<K,V> cache)
static QueryFactory
getQueryFactory(Cache<?,?> cache)
Obtain the query factory for building DSL based Ickle queries.static SearchManager
getSearchManager(Cache<?,?> cache)
Deprecated.Since 11.0 with no replacement.static <K,V>
CacheEventFilterConverter<K,V,ObjectFilter.FilterResult>makeFilter(String queryString)
Create an event filter out of an Ickle query string.static <K,V>
CacheEventFilterConverter<K,V,ObjectFilter.FilterResult>makeFilter(String queryString, Map<String,Object> namedParameters)
Create an event filter out of an Ickle query string.static <K,V>
CacheEventFilterConverter<K,V,ObjectFilter.FilterResult>makeFilter(Query<?> query)
Create an event filter out of an Ickle query.
-
-
-
Method Detail
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(String queryString)
Create an event filter out of an Ickle query string.
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(String queryString, Map<String,Object> namedParameters)
Create an event filter out of an Ickle query string.
-
makeFilter
public static <K,V> CacheEventFilterConverter<K,V,ObjectFilter.FilterResult> makeFilter(Query<?> query)
Create an event filter out of an Ickle query.
-
getQueryFactory
public static QueryFactory getQueryFactory(Cache<?,?> cache)
Obtain the query factory for building DSL based Ickle queries.
-
getContinuousQuery
public static <K,V> ContinuousQuery<K,V> getContinuousQuery(Cache<K,V> cache)
Obtain theContinuousQuery
object for a cache.
-
getSearchManager
@Deprecated public static SearchManager getSearchManager(Cache<?,?> cache)
Deprecated.Since 11.0 with no replacement.Obtain theSearchManager
object for a cache.
-
-