Represents a cassandra user defined function

See Also:

Inherits

Object

Methods

name

Returns function name

Returns:
Type Details
String function name

language

Returns function language

Returns:
Type Details
String function language

type

Returns function return type

Returns:
Type Details
Type function return type

body

Returns function body

Returns:
Type Details
String function body

called_on_null?

Returns whether this function will be called on null input

Returns:
Type Details
Boolean whether this function will be called on null input

has_argument?

(name)

Returns whether this function has a given argument

Parameters:
Name Type Details
name String argument name
Returns:
Type Details
Boolean whether this function has a given argument

argument

(name)

Returns an argument or nil

Parameters:
Name Type Details
name String argument name
Returns:
Type Details
(Argument or nil) an argument or nil

each_argument

(&block) aliased as: arguments

Yield or enumerate each argument defined in this function

Overloads:
each_argument {|argument| … }

Returns self

Yield Parameters:
Name Type Details
argument Argument current argument
Returns:
Type Details
Table self
each_argument

Returns a list of arguments

Returns:
Type Details
Array<Argument> a list of arguments

argument_types

Get the list of argument types for this function.

Returns:
Type Details
Array<Type> a list of argument types.

to_cql

Returns a cql representation of this function

Returns:
Type Details
String a cql representation of this function