public class CoherenceQueryLanguageEngine extends AbstractQueryEngine
QueryEngine
.
The query expression consumed by this implementation is the "where" predicate of the Coherence Query Language.
Note: Although this query engine supports paging, the current implementation still handles entire result set on the client. That can lead to massive memory consumption (and possible OutOfMemoryErrors) if invoked on large caches with an unrestricted query.
AbstractQueryEngine.ParsedQuery
Modifier and Type | Field and Description |
---|---|
static ExtractorBuilder |
EXTRACTOR_BUILDER
ExtractorBuilder to use.
|
protected CoherenceQueryLanguage |
f_language |
static ExtractorBuilder |
MVEL_EXTRACTOR_BUILDER
ExtractorBuilder to use if optional
org.mvel.Mvel2 module is on path. |
m_mapParsedQuery
DEFAULT
Constructor and Description |
---|
CoherenceQueryLanguageEngine() |
Modifier and Type | Method and Description |
---|---|
Query |
prepareQuery(String sQuery,
Map<String,Object> mapParams)
Prepares a Query for execution by replacing any parameter placeholders
with the appropriate values from the parameter map.
|
convertList, createBindings, parseQueryString, resolveParameterType
public static final ExtractorBuilder MVEL_EXTRACTOR_BUILDER
org.mvel.Mvel2
module is on path.public static final ExtractorBuilder EXTRACTOR_BUILDER
org.mvel.Mvel2
module is available on path,
use MVEL_EXTRACTOR_BUILDER
; otherwise, use UniversalExtractorBuilder
.protected final CoherenceQueryLanguage f_language
public Query prepareQuery(String sQuery, Map<String,Object> mapParams)
sQuery
- query expressionmapParams
- parameter values used to resolve parameters from
query expression