Class ConjunctCPQ
java.lang.Object
dev.roanh.gmark.query.Conjunct
dev.roanh.gmark.query.conjunct.cpq.ConjunctCPQ
- All Implemented Interfaces:
OutputXML
Defines a conjunct that has a CPQ as its inner query.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConjunctCPQ
(CPQ cpq, Variable source, Variable target, boolean star) Constructs a new CPQ conjunct with the given CPQ. -
Method Summary
Modifier and TypeMethodDescriptiongetCPQ()
Gets the CPQ for this conjunct.protected String
Gets the string representation of the inner part of this conjunct.getType()
Gets the workload type this conjunct belongs to.protected void
writePartialSQL
(IndentWriter writer) Writes the SQL representation of the inner part of this conjunct to the given writer.protected void
writePartialXML
(IndentWriter writer) Writes the XML representation of the inner part of this conjunct to the given writer.Methods inherited from class dev.roanh.gmark.query.Conjunct
getSource, getTarget, hasStar, toString, writeSQL, writeXML
-
Field Details
-
cpq
The CPQ in this conjunct.
-
-
Constructor Details
-
ConjunctCPQ
Constructs a new CPQ conjunct with the given CPQ.- Parameters:
cpq
- The CPQ for this conjunct.source
- The source variable of the conjunct.target
- The target variable of the conjunct.star
- True if the conjunct should have a Kleene star above it.
-
-
Method Details
-
getCPQ
Gets the CPQ for this conjunct.- Returns:
- The CPQ for this conjunct.
- See Also:
-
getInnerString
Description copied from class:Conjunct
Gets the string representation of the inner part of this conjunct.- Specified by:
getInnerString
in classConjunct
- Returns:
- The inner string for this conjunct.
-
writePartialSQL
Description copied from class:Conjunct
Writes the SQL representation of the inner part of this conjunct to the given writer.- Specified by:
writePartialSQL
in classConjunct
- Parameters:
writer
- The writer to write to.
-
writePartialXML
Description copied from class:Conjunct
Writes the XML representation of the inner part of this conjunct to the given writer.- Specified by:
writePartialXML
in classConjunct
- Parameters:
writer
- The writer to write to.
-
getType
Description copied from class:Conjunct
Gets the workload type this conjunct belongs to.
-