public final class QueryManagerBuilder extends Object
Query Manager builder providing methods to add caches which
can be queried.
The Query Manager instance returned by this builder can be used to execute
search queries expressed as Big Memory Structured Query Language (BMSQL) statements.| Modifier and Type | Method and Description |
|---|---|
QueryManagerBuilder |
addAllCachesCurrentlyIn(CacheManager cacheManager)
Adds all
Caches present in a Cache Manager to
the internal state of the query manager. |
QueryManagerBuilder |
addCache(Ehcache cache)
Adds a
Cache to the internal state and allows it to be used as a target in a
BMSQL statement's FROM clause. |
QueryManager |
build()
Returns a new
Query Manager using the options supplied during the building
process. |
static QueryManagerBuilder |
newQueryManagerBuilder()
Creates a new
Query Manager builder. |
public static QueryManagerBuilder newQueryManagerBuilder()
Query Manager builder.public QueryManagerBuilder addCache(Ehcache cache)
Cache to the internal state and allows it to be used as a target in a
BMSQL statement's FROM clause.cache - a cache instance to be addedpublic QueryManagerBuilder addAllCachesCurrentlyIn(CacheManager cacheManager)
Caches present in a Cache Manager to
the internal state of the query manager.
The added caches can be used in a BMSQL statement's FROM clause.cacheManager - a Cache Manager whose
caches need to be addedpublic QueryManager build()
Query Manager using the options supplied during the building
process.Query ManagerCopyright 2001-2021, Terracotta, Inc.