Class CimQuery

java.lang.Object
net.aifusion.cql.CimQuery

public class CimQuery extends Object
Class to implement a query for elements in a repository
Author:
Sharad Singhal
  • Constructor Details

    • CimQuery

      public CimQuery(String query)
      Create a CIM query
      Parameters:
      query - query in CQL format
  • Method Details

    • toString

      public String toString()
      Get a string representation of this query containing the query string and the parse tree
      Overrides:
      toString in class Object
    • setVariable

      public void setVariable(String variable, DataValue value)
      Set the value of a lazy constant in this query
      Parameters:
      variable - - name of the lazy constant
      value - - value to set
    • executeQuery

      public List<StructureValue> executeQuery(Repository repository)
      Execute this query against a repository
      Parameters:
      repository - - repository to run this query against
      Returns:
      - result set from the query