QueryEvaluator
open class QueryEvaluator : ObjectBase
Evaluator for DataQuery expressions.
-
Default initializer.
Declaration
Swift
override public init() -
Evaluate a query function call in the provided context.
Declaration
Swift
open func applyFunction(call: QueryFunctionCall, context: StructureBase?) throws -> DataValue?Parameters
callQuery function call expression.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Function result.
-
Evaluate a query operator call in the provided context.
Declaration
Swift
open func applyOperator(call: QueryOperatorCall, context: StructureBase?) throws -> DataValue?Parameters
callQuery operator call expression.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Operator result.
-
Evaluate a query expression
valuein the providedcontext.Declaration
Swift
open func evaluate(_ value: DataValue?, context: StructureBase?) throws -> DataValue?Parameters
valueQuery expression to be evaluated.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Evaluated expression.
-
Evaluate a boolean-typed query expression
valuein the providedcontext.Declaration
Swift
open func evaluateBoolean(_ value: DataValue?, context: StructureBase?) throws -> BooleanValue?Parameters
valueQuery expression to be evaluated.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Evaluated value, as type
string. -
Evaluate a data path in the provided
context.Declaration
Swift
open func evaluatePath(_ path: DataPath, context: StructureBase?) throws -> DataValue?Parameters
pathData path.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Evaluated path.
-
Evaluate a string-typed query expression
valuein the providedcontext.Declaration
Swift
open func evaluateString(_ value: DataValue?, context: StructureBase?) throws -> StringValue?Parameters
valueQuery expression to be evaluated.
contextStructure (
ComplexValueorEntityValue) providing the evaluation context.Return Value
Evaluated value, as type
string.