Package | Description |
---|---|
com.tangosol.coherence.dslquery | |
com.tangosol.coherence.dslquery.internal | |
com.tangosol.coherence.dslquery.operator |
This package contains implementations of the
com.tangosol.coherence.dslquery.BaseOperator
interface. |
com.tangosol.coherence.dslquery.queryplus |
This package contains commands that are specific to the
QueryPlus
tool rather than general CohQL commands. |
com.tangosol.coherence.dslquery.statement |
This package contains
StatementBuilder implementations and
com.tangosol.coherence.dslquery.CohQLStatement implementations. |
com.tangosol.coherence.dslquery.token |
This package contains implementations of
OPToken specifically
for parsing CohQL statements. |
com.tangosol.coherence.dslquery.token.persistence | |
com.tangosol.coherence.dsltools.precedence | |
com.tangosol.coherence.dsltools.termlanguage | |
com.tangosol.coherence.dsltools.termtrees | |
com.tangosol.util |
Contains various generic utilities.
|
Modifier and Type | Field and Description |
---|---|
protected Term |
FilterBuilder.m_term
The Term that is the AST that encodes the Filter to be made.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FilterBuilder.acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight)
This method will take a Binary Operator and the left and right
Term s
for the operator and result in the creation of a Filter or a ValueExtractor . |
protected void |
FilterBuilder.acceptUnaryOperator(String sOperator,
Term t) |
Filter |
FilterBuilder.makeFilter(Term term)
Make a new Filter from the given AST.
|
Filter |
FilterBuilder.makeFilter(Term term,
List listBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars)
Make a new Filter from the given AST using the given bind variables.
|
Filter |
FilterBuilder.makeFilter(Term term,
Object[] aoIndexedBindVars)
Make a new Filter from the given AST using given array for Bind vars.
|
Filter |
FilterBuilder.makeFilter(Term term,
Object[] aoIndexedBindVars,
Map mapNamedBindVars)
Make a new Filter from the given AST using the given bind variables.
|
Filter |
FilterBuilder.makeFilterForCache(String sCacheName,
Term term,
List indexedBindVars,
com.tangosol.config.expression.ParameterResolver namedBindVars)
Make a new Filter from the given AST using given array for Bind vars.
|
Constructor and Description |
---|
FilterBuilder(Term term)
Construct a new FilterBuilder that can construct a Filter from the
given Term.
|
Modifier and Type | Field and Description |
---|---|
protected Term |
AbstractCoherenceQueryWalker.f_termKeyFunction
Constant equal to an empty Key function term.
|
Modifier and Type | Method and Description |
---|---|
static Term |
PersistenceToolsHelper.getNextTerm(OPScanner s,
String sName,
String sDescription,
String sCommand)
Return a term for a given scanner representing the specified name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractCoherenceQueryWalker.acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight)
The receiver has classified a binary operation node.
|
protected void |
SelectListMaker.acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight)
The receiver has classified a binary operation node
|
protected void |
UpdateSetListMaker.acceptBinaryOperator(String sOperator,
Term termLeft,
Term termRight) |
void |
AbstractCoherenceQueryWalker.acceptTerm(String sFunctor,
Term term) |
protected void |
AbstractCoherenceQueryWalker.acceptUnaryOperator(String sOperator,
Term term)
The receiver has classified a unary operation node.
|
protected void |
UpdateSetListMaker.acceptUnaryOperator(String sOperator,
Term term) |
protected boolean |
UpdateSetListMaker.needsObjectCreation(String sFunctor,
Term term)
Test to see if we need to construct object given a node type.
|
Object |
AbstractCoherenceQueryWalker.walk(Term term) |
Modifier and Type | Method and Description |
---|---|
ValueExtractor |
BaseOperator.makeExtractor(Term termLeft,
Term termRight,
TermWalker walker)
|
ComparisonFilter |
EqualsOperator.makeFilter(Term termLeft,
Term termRight,
TermWalker walker) |
ComparisonFilter |
ComparisonOperator.makeFilter(Term termLeft,
Term termRight,
TermWalker walker) |
F |
BaseOperator.makeFilter(Term termLeft,
Term termRight,
TermWalker walker)
|
Modifier and Type | Method and Description |
---|---|
Term |
TraceStatementBuilder.TraceCommandOPToken.led(OPParser parser,
Term termLeft) |
Term |
TraceStatementBuilder.TraceCommandOPToken.nud(OPParser parser) |
Term |
WheneverStatementBuilder.WheneverCommandOPToken.nud(OPParser parser) |
Term |
ServicesStatementBuilder.ServicesCommandOPToken.nud(OPParser parser) |
Term |
HelpStatementBuilder.HelpCommandOPToken.nud(OPParser parser) |
Term |
CommandsStatementBuilder.CommandsOPToken.nud(OPParser parser) |
Term |
SetTimeoutStatementBuilder.SetTimeoutOPToken.nud(OPParser parser) |
Term |
SanityCheckStatementBuilder.SanityCheckCommandOPToken.nud(OPParser parser) |
Term |
ExtendedLanguageStatementBuilder.ExtendedLanguageCommandOPToken.nud(OPParser parser) |
Modifier and Type | Method and Description |
---|---|
Term |
TraceStatementBuilder.TraceCommandOPToken.led(OPParser parser,
Term termLeft) |
Modifier and Type | Method and Description |
---|---|
protected static Term |
AbstractStatementBuilder.getExtractor(NodeTerm sn)
Return the AST node that represents the extractor for an index from the
given AST node.
|
protected static Term |
AbstractStatementBuilder.getInsertKey(NodeTerm sn)
Return the AST node that represents the key to insert from the
given AST node.
|
protected static Term |
AbstractStatementBuilder.getInsertValue(NodeTerm sn)
Return the AST node that represents the value to insert from the
given AST node.
|
protected static Term |
AbstractStatementBuilder.getSetList(NodeTerm sn)
Return the AST node that represents the list of "Set statements" from the
given AST node.
|
Modifier and Type | Method and Description |
---|---|
protected static String |
AbstractStatementBuilder.atomicStringValueOf(Term t)
Return a String that is the value of the given Term.
|
protected Object |
InsertStatementBuilder.createInsertKey(Term termKey,
UpdateSetListMaker transformer,
Object oValue)
Create the key to use in the insert statement.
|
protected Object |
InsertStatementBuilder.createInsertValue(Term termValue,
UpdateSetListMaker transformer)
Create the instance of the value that will be inserted into the cache.
|
Modifier and Type | Method and Description |
---|---|
protected Term |
SQLOPToken.checkAlias(OPParser p,
String... expectedNextKeywords)
Check to see if there is an alias and create a Term to hold the alias
identifier if one exists
|
protected Term |
SQLOPToken.checkAlias(OPParser p,
String expectedNextKeyword)
Check to see if there is an alias and create a Term to hold the alias
identifier if one exists
|
Term |
SQLDeleteOPToken.nud(OPParser parser) |
Term |
SQLTruncateCacheOPToken.nud(OPParser parser) |
Term |
SQLDropIndexOPToken.nud(OPParser parser) |
Term |
SQLInsertOPToken.nud(OPParser parser) |
Term |
SQLCreateCacheOPToken.nud(OPParser parser) |
Term |
SQLExplainOPToken.nud(OPParser parser) |
Term |
SQLCreateIndexOPToken.nud(OPParser parser) |
Term |
SQLBackupOPToken.nud(OPParser parser) |
Term |
SQLSourceOPToken.nud(OPParser parser) |
Term |
SQLDropCacheOPToken.nud(OPParser parser) |
Term |
SQLRestoreOPToken.nud(OPParser parser) |
Term |
SQLSelectOPToken.nud(OPParser parser) |
Term |
SQLUpdateOPToken.nud(OPParser parser) |
Modifier and Type | Method and Description |
---|---|
Term |
SQLListSnapshotsOPToken.nud(OPParser p) |
Term |
SQLValidateSnapshotOPToken.nud(OPParser p) |
Term |
SQLArchiveSnapshotOPToken.nud(OPParser p) |
Term |
SQLRemoveSnapshotOPToken.nud(OPParser p) |
Term |
SQLListArchivedSnapshotsOPToken.nud(OPParser p) |
Term |
SQLRetrieveSnapshotOPToken.nud(OPParser p) |
Term |
SQLSuspendServiceOPToken.nud(OPParser p) |
Term |
SQLForceRecoveryOPToken.nud(OPParser p) |
Term |
SQLListServicesOPToken.nud(OPParser p) |
Term |
SQLResumeServiceOPToken.nud(OPParser p) |
Term |
SQLRecoverSnapshotOPToken.nud(OPParser p) |
Term |
SQLListArchiverOPToken.nud(OPParser p) |
Term |
SQLCreateSnapshotOPToken.nud(OPParser p) |
protected Term |
AbstractSQLSnapshotOPToken.process(OPScanner s,
String sOperation,
String sFunctor)
Process the commands for the given operation and return a
valid
Term for the command. |
Modifier and Type | Method and Description |
---|---|
<T extends Term> |
OPParser.parse()
Parse the next expression into an Abstract Syntax Tree.
|
Modifier and Type | Method and Description |
---|---|
protected Term |
PeekOPToken.defaultLed(OPParser parser,
Term leftNode)
The default led method that will be called if there is no
OPToken mapped for the token parsed from the token
stream. |
protected Term |
PeekOPToken.defaultNud(OPParser parser)
The default nud method that will be called if there is no
OPToken mapped for the token parsed from the token stream. |
Term |
OPParser.expression(int nRightBindingPower)
Parse the next expression into an Abstract Syntax Tree using the
given right binding power.
|
Term |
ParenOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
InfixRightOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
LiteralOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
InfixOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
ContainsOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
PeekOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
PathOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
IdentifierOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
NotOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
OPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
KeywordOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
LikeOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
BetweenOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term term)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term t1,
Term t2)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term t1,
Term t2,
Term t3)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
Term term)
Create an Abstract Syntax Node for the given arguments.
|
Term[] |
OPParser.nodeList()
Parse a comma separated sequence of expressions to the of the tokens.
|
Term[] |
OPParser.nodeList(String sEndMarker)
Parse a comma separated sequence of expressions upto the given end
marker.
|
Term[] |
OPParser.nodeList(String sEndMarker,
boolean fEndStreamAllowed)
Parse a comma separated sequence of expressions upto the given end
marker.
|
Term |
ParenOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
LiteralOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
InfixOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
PrefixOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
PeekOPToken.nud(OPParser parser)
Process this token in the context of parser p with the null
denotation.
|
Term |
ListOpToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
IdentifierOPToken.nud(OPParser parser)
Process this token in the context of parser p with the null
denotation.
|
Term |
NotOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term |
OPToken.nud(OPParser parser)
Process this token in the context of parser p with the null
denotation.
|
Term |
KeywordOPToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Term[] |
OPParser.readNestedCommaSeparatedList(NestedBaseTokens nest)
Build an array of ASTNodes by processing the this tokens nest as
a comma separated list.
|
Modifier and Type | Method and Description |
---|---|
protected Term |
PeekOPToken.defaultLed(OPParser parser,
Term leftNode)
The default led method that will be called if there is no
OPToken mapped for the token parsed from the token
stream. |
Term |
ParenOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
InfixRightOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
LiteralOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
InfixOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
ContainsOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
PeekOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
PathOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
IdentifierOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
NotOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
OPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
KeywordOPToken.led(OPParser parser,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
LikeOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
BetweenOPToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term term)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term t1,
Term t2)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
String sFunctor,
Term t1,
Term t2,
Term t3)
Create an Abstract Syntax Node for the given arguments.
|
protected Term |
OPToken.newAST(String sAstName,
Term term)
Create an Abstract Syntax Node for the given arguments.
|
Modifier and Type | Method and Description |
---|---|
Term |
CurlyToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
ColonToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
CurlyToken.nud(OPParser p)
Process this token in the context of parser p with the null
denotation.
|
Modifier and Type | Method and Description |
---|---|
Term |
CurlyToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Term |
ColonToken.led(OPParser p,
Term leftNode)
Process this token and possibly the given leftNodein the context of
a parser with the left denotation.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicTerm
AtomicTerms is the class used to represent literal Terms such as String
and Numbers.
|
class |
NodeTerm
NodeTerm is the class used to represent trees of Terms that can have
children.
|
Modifier and Type | Method and Description |
---|---|
abstract Term[] |
Term.children()
Obtain the childern Terms
|
Term[] |
NodeTerm.children()
Obtain the childern Terms
|
Term[] |
AtomicTerm.children()
Obtain the childern Terms
|
static Term |
Terms.create(String s)
Create a Tree of Terms using the Term Language in the given String
|
static Term |
Terms.create(String s,
CoherenceQueryLanguage language)
Create a Tree of Terms using the Term Language in the given String
|
Term |
Term.findAttribute(String sFunctor)
Find the Term amoungst the children whose functor equals the
given functor that has a singleton child.
|
Term |
Term.findChild(String sFunctor)
Find the Term amoungst the children whose functor equals the
given functor.
|
Term |
AtomicTerm.findChild(String fn)
Find the Term amoungst the children whose functor equals the
given functor.
|
static Term |
Terms.newTerm(String sFunctor)
Construct a new TermNode with the given functor.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4,
Term t5)
Construct a new TermNode with the given functor and given Terms.
|
Term |
Term.TermIterator.next() |
abstract Term |
Term.termAt(int index)
Obtain the child term at the given index.
|
Term |
NodeTerm.termAt(int index)
Obtain the child term at the given index.
|
Term |
AtomicTerm.termAt(int index)
Obtain the child term at the given index.
|
abstract Term |
Term.withChild(Term t)
Join the receiver with the given child Term.
|
Term |
NodeTerm.withChild(Term t)
Join the receiver with the given child Term.
|
Term |
AtomicTerm.withChild(Term t)
Join the receiver with the given child Term.
|
Modifier and Type | Method and Description |
---|---|
Iterator<Term> |
Term.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
TermWalker.acceptTerm(String sFunctor,
Term term)
The receiver has been dispatched to from the given atom.
|
boolean |
Term.childrenTermEqual(Term t)
Answer whether the receiver's children is equal to the given Terms
children.
|
boolean |
Term.headChildrenTermEqual(Term t)
Find the Term amongst the children whose functor equals the
given functor.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
Terms.newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4,
Term t5)
Construct a new TermNode with the given functor and given Terms.
|
abstract boolean |
Term.termEqual(Term t)
Answer whether the receiver is equal to the given Term.
|
boolean |
NodeTerm.termEqual(Term t)
Answer whether the receiver is equal to the given Term.
|
boolean |
AtomicTerm.termEqual(Term t)
Answer whether the receiver is equal to the given Term.
|
Object |
TermWalker.walk(Term term)
Return the result of the walking the specified TermTree.
|
abstract Term |
Term.withChild(Term t)
Join the receiver with the given child Term.
|
Term |
NodeTerm.withChild(Term t)
Join the receiver with the given child Term.
|
Term |
AtomicTerm.withChild(Term t)
Join the receiver with the given child Term.
|
Constructor and Description |
---|
NodeTerm(String sFunctor,
Term t1)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term[] aTerms,
Term term)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term[] aTerms,
Term term)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term t1,
Term t2)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term term,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term term,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term t1,
Term t2,
Term t3)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4)
Construct a new TermNode with the given functor and given Terms.
|
NodeTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4,
Term t5)
Construct a new TermNode with the given functor and given Terms.
|
TermIterator(Term termParent)
|
Modifier and Type | Method and Description |
---|---|
protected static Term |
QueryHelper.parse(String sQuery)
Return the
Term representing the AST produced by
parsing the specified CohQL query String. |
protected static Term |
QueryHelper.parse(String sQuery,
CoherenceQueryLanguage language)
Return the
Term representing the AST produced by
parsing the specified CohQL query String. |