Class ConjunctCPQ

java.lang.Object
dev.roanh.gmark.query.Conjunct
dev.roanh.gmark.query.conjunct.cpq.ConjunctCPQ
All Implemented Interfaces:
OutputXML

public class ConjunctCPQ extends Conjunct
Defines a conjunct that has a CPQ as its inner query.
See Also:
  • Field Details

    • cpq

      private CPQ cpq
      The CPQ in this conjunct.
  • Constructor Details

    • ConjunctCPQ

      public ConjunctCPQ(CPQ cpq, Variable source, Variable target, boolean star)
      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

      public CPQ getCPQ()
      Gets the CPQ for this conjunct.
      Returns:
      The CPQ for this conjunct.
      See Also:
    • getInnerString

      protected String getInnerString()
      Description copied from class: Conjunct
      Gets the string representation of the inner part of this conjunct.
      Specified by:
      getInnerString in class Conjunct
      Returns:
      The inner string for this conjunct.
    • writePartialSQL

      protected void writePartialSQL(IndentWriter writer)
      Description copied from class: Conjunct
      Writes the SQL representation of the inner part of this conjunct to the given writer.
      Specified by:
      writePartialSQL in class Conjunct
      Parameters:
      writer - The writer to write to.
    • writePartialXML

      protected void writePartialXML(IndentWriter writer)
      Description copied from class: Conjunct
      Writes the XML representation of the inner part of this conjunct to the given writer.
      Specified by:
      writePartialXML in class Conjunct
      Parameters:
      writer - The writer to write to.
    • getType

      public WorkloadType getType()
      Description copied from class: Conjunct
      Gets the workload type this conjunct belongs to.
      Specified by:
      getType in class Conjunct
      Returns:
      The workload type this conjunct belongs to.