Describes a CQL function.

Members

Array<String>

argumentNames

List of the function argument names.

Array<{code, info}>

argumentTypes

List of the function argument types.

String

body

Body of the function.

Boolean

calledOnNullInput

Determines if the function is called when the input is null.

Boolean

deterministic

Indicates whether or not this function is deterministic. This means that given a particular input, the function will always produce the same output.

keyspaceName

Name of the keyspace where the cql function is declared.

String

language

Name of the programming language, for example: java, javascript, …

Boolean

monotonic

Indicates whether or not this function is monotonic on all of its arguments. This means that it is either entirely non-increasing or non-decreasing. Even if the function is not monotonic on all of its arguments, it’s possible to specify that it is monotonic on one of its arguments, meaning that partial applications of the function over that argument will be monotonic.

Monotonicity is required to use the function in a GROUP BY clause.

Array<String>

monotonicOn

The argument names that the function is monotonic on.

If monotonic is true, this will return all argument names. Otherwise, this will return either one argument or an empty array.

String

name

Name of the cql function.

Object

returnType

Type of the return value.

Array<String>

signature

Signature of the function.

Constructor

new

SchemaFunction

()

Creates a new SchemaFunction.