public class QueryRecorderStatementBuilder extends AbstractStatementBuilder<QueryRecorderStatementBuilder.QueryRecorderStatement>
StatementBuilder
that parses a CohQL term tree to produce an instance of a QueryRecorderStatementBuilder.QueryRecorderStatement
.Modifier and Type | Class and Description |
---|---|
static class |
QueryRecorderStatementBuilder.QueryRecorderStatement
Implementation of the CohQL "QueryRecorder" command.
|
Modifier and Type | Field and Description |
---|---|
static QueryRecorderStatementBuilder |
EXPLAIN_INSTANCE
An instance of a QueryRecorderStatementBuilder that builds EXPLAIN PLAN queries.
|
protected QueryRecorder.RecordType |
m_recordType
The type of query recorder that this builder builds.
|
static QueryRecorderStatementBuilder |
TRACE_INSTANCE
An instance of a QueryRecorderStatementBuilder that builds TRACE queries.
|
Modifier | Constructor and Description |
---|---|
protected |
QueryRecorderStatementBuilder(QueryRecorder.RecordType recordType)
Construct a QueryRecorderStatementBuilder of the specified type.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Return a description of the CohQL command suitable for displaying
as help text.
|
String |
getSyntax()
Return the syntax of the CohQL command.
|
QueryRecorderStatementBuilder.QueryRecorderStatement |
realize(ExecutionContext ctx,
NodeTerm term,
List listBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars)
Realizes an implementation of a
Statement that can be
executed to perform a specific CohQL command. |
atomicStringValueOf, ensureFilter, getAlias, getCacheName, getExtractor, getFields, getFile, getGroupBy, getInsertKey, getInsertValue, getIsDistinct, getSetList, getWhere, headsMatch
public static final QueryRecorderStatementBuilder EXPLAIN_INSTANCE
public static final QueryRecorderStatementBuilder TRACE_INSTANCE
protected QueryRecorder.RecordType m_recordType
protected QueryRecorderStatementBuilder(QueryRecorder.RecordType recordType)
recordType
- the type of query recorder to buildpublic QueryRecorderStatementBuilder.QueryRecorderStatement realize(ExecutionContext ctx, NodeTerm term, List listBindVars, com.tangosol.config.expression.ParameterResolver namedBindVars)
StatementBuilder
Statement
that can be
executed to perform a specific CohQL command.ctx
- the ExecutionContext
to use to create commandsterm
- the parsed NodeTerm
used to create the relevant StatementlistBindVars
- the indexed bind variablesnamedBindVars
- the named bind variablespublic String getSyntax()
StatementBuilder
public String getDescription()
StatementBuilder