%DeepSee.Query.scalarFunction

class %DeepSee.Query.scalarFunction extends %Library.RegisteredObject

This class defines the set of scalar functions allowed within DeepSee queries.

Method Inventory

Methods

classmethod %EvaluateScalar(pFunc As %String, pValue1 As %String = "", pValue2 As %String = "", pValue3 As %String = "", pValue4 As %String = "") as %String [ Language = objectscript ]
Evaluate the given scalar function, pFunc, and return the result.
classmethod %IsScalarFunction(pFunc As %String) as %String [ Language = objectscript ]
Test if pFunc is a scalar function. Return -1 if function is not a scalar function, otherwise return the number of arguments and (total number of) optional arguments (args:optargs) expected by the function.
classmethod ISNULL(pValue As %Double, pReplacement As %Double) as %Double [ Language = objectscript ]
IsNull scalar function: If value is "", return replacment,
classmethod LOG(pValue As %Double) as %Double [ Language = objectscript ]
Log base 10 scalar function.
classmethod LOOKUP(pTermList As %String, pKey As %String, pDefault As %String = "", pField As %String = "") as %String [ Language = objectscript ]
Lookup a value in a term list.
classmethod POWER(pValue As %Double, pArg As %Double) as %Double [ Language = objectscript ]
Power scalar function.
classmethod ROUND(pValue As %Double, pDigits As %Integer = 0) as %Double [ Language = objectscript ]
Round the given value to pDigits places.
classmethod SQRT(pValue As %Double) as %Double [ Language = objectscript ]
Square root scalar function.

Inherited Members

Inherited Methods

Feedback