Class QueryEngineRegistry
java.lang.Object
com.tangosol.coherence.rest.query.QueryEngineRegistry
A registry for
QueryEngine
instances.- Author:
- ic 2011.12.03
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map
<String, QueryEngine> A map of registered QueryEngines, keyed by engine names. -
Constructor Summary
ConstructorDescriptionConstruct a QueryEngineRegistry instance.QueryEngineRegistry
(Collection<? extends QueryEngineConfig> colConfig) Construct a QueryEngineRegistry instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected static QueryEngine
createQueryEngine
(Class clzQueryEngine) Create a query engine instance.getQueryEngine
(String sName) Return a query engine for the specified name.void
registerQueryEngine
(String sName, QueryEngine queryEngine) Register a query engine for the specified name.void
registerQueryEngine
(String sName, Class clzQueryEngine) Register a query engine for the specified name.
-
Field Details
-
m_mapQueryEngines
A map of registered QueryEngines, keyed by engine names.
-
-
Constructor Details
-
QueryEngineRegistry
public QueryEngineRegistry()Construct a QueryEngineRegistry instance.Invoking this constructor will register a CoherenceQueryLanguageEngine as the default query engine.
- See Also:
-
QueryEngineRegistry
Construct a QueryEngineRegistry instance.Invoking this constructor will register a CoherenceQueryLanguageEngine as the default query engine. Any of provided configurations with name "DEFAULT" will override this one as default query engine.
- Parameters:
colConfig
- query engine configurations to be registered
-
-
Method Details
-
registerQueryEngine
Register a query engine for the specified name.- Parameters:
sName
- query engine nameclzQueryEngine
- query engine class
-
registerQueryEngine
Register a query engine for the specified name.- Parameters:
sName
- query engine namequeryEngine
- query engine
-
getQueryEngine
Return a query engine for the specified name.If none found, the default query engine will be returned.
- Parameters:
sName
- name of the query engine- Returns:
- query engine for the specified name or default query engine
-
createQueryEngine
Create a query engine instance.- Parameters:
clzQueryEngine
- query engine class- Returns:
- query engine instance
-