DefineFunction

class DefineFunction(val name: String, val parameterFields: Array[ParameterField], val expr: Expression, val opType: OpType, val dataType: DataType) extends Function with HasOpType with HasDataType with PmmlElement

Defines new (user-defined) functions as variations or compositions of existing functions or transformations. The function's name must be unique and must not conflict with other function names, either defined by PMML or other user-defined functions. The EXPRESSION in the content of DefineFunction is the function body that actually defines the meaning of the new function. The function body must not refer to fields other than the parameter fields.

trait HasOpType
trait Function
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

override def apply(parameters: Any*): Any
Definition Classes
override def symbol: String
Definition Classes

Inherited methods

def accepts(other: DataType): Boolean

Returns true if other is an acceptable input type for a function that expects this.

Returns true if other is an acceptable input type for a function that expects this.

Inherited from:
DataTypeLike
Inherited from:
HasExtensions
def hasExtensions: Boolean
Inherited from:
HasExtensions
def isCategorical: Boolean

Tests whether this field is categorical (nominal or ordinal).

Tests whether this field is categorical (nominal or ordinal).

Inherited from:
HasOpType
def isContinuous: Boolean

Tests whether this field is continuous.

Tests whether this field is continuous.

Inherited from:
HasOpType
def isDate: Boolean
Inherited from:
DataTypeLike
def isDateTime: Boolean
Inherited from:
DataTypeLike
def isDouble: Boolean
Inherited from:
DataTypeLike
def isFloat: Boolean
Inherited from:
DataTypeLike
def isNominal: Boolean

Tests whether this field is nominal.

Tests whether this field is nominal.

Inherited from:
HasOpType
def isNumeric: Boolean
Inherited from:
DataTypeLike
def isOrdinal: Boolean

Tests whether this field is ordinal.

Tests whether this field is ordinal.

Inherited from:
HasOpType
def isReal: Boolean
Inherited from:
DataTypeLike
def isString: Boolean
Inherited from:
DataTypeLike
def isTime: Boolean
Inherited from:
DataTypeLike
def isTimestamp: Boolean
Inherited from:
DataTypeLike
override def toString: String
Definition Classes
Function -> Any
Inherited from:
Function
def xSymbol: Option[String]
Inherited from:
Function

Concrete fields

val name: String