Package net.aifusion.cql
Class CimQuery
java.lang.Object
net.aifusion.cql.CimQuery
Class to implement a query for elements in a repository
- Author:
- Sharad Singhal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery
(Repository repository) Execute this query against a repositoryvoid
setVariable
(String variable, DataValue value) Set the value of a lazy constant in this querytoString()
Get a string representation of this query containing the query string and the parse tree
-
Constructor Details
-
CimQuery
Create a CIM query- Parameters:
query
- query in CQL format
-
-
Method Details
-
toString
Get a string representation of this query containing the query string and the parse tree -
setVariable
Set the value of a lazy constant in this query- Parameters:
variable
- - name of the lazy constantvalue
- - value to set
-
executeQuery
Execute this query against a repository- Parameters:
repository
- - repository to run this query against- Returns:
- - result set from the query
-