public abstract class AbstractFunction extends Object implements Function
| Constructor and Description |
|---|
AbstractFunction(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected static Number |
cast(org.dmg.pmml.DataType dataType,
Number number) |
protected void |
checkArguments(List<FieldValue> arguments,
int size) |
protected void |
checkArguments(List<FieldValue> arguments,
int size,
boolean allowNulls)
Validates arguments for a function that has a fixed number of formal parameters.
|
protected void |
checkVariableArguments(List<FieldValue> arguments,
int minSize) |
protected void |
checkVariableArguments(List<FieldValue> arguments,
int minSize,
boolean allowNulls)
Validates arguments for a function that has a variable number ("
n or more") of formal parameters. |
String |
getName()
Gets the default name of this function.
|
protected static org.dmg.pmml.DataType |
integerToDouble(org.dmg.pmml.DataType dataType) |
public AbstractFunction(String name)
protected void checkArguments(List<FieldValue> arguments, int size)
protected void checkArguments(List<FieldValue> arguments, int size, boolean allowNulls)
Validates arguments for a function that has a fixed number of formal parameters.
size - The number of arguments.allowNulls - true if missing arguments are permitted, false otherwise.FunctionException - If the validation fails.protected void checkVariableArguments(List<FieldValue> arguments, int minSize)
protected void checkVariableArguments(List<FieldValue> arguments, int minSize, boolean allowNulls)
Validates arguments for a function that has a variable number ("n or more") of formal parameters.
minSize - The minimum number of arguments.allowNulls - true if missing arguments are allowed, false otherwise.FunctionException - If the validation fails.public String getName()
FunctionGets the default name of this function.
The default name should be unique in application scope. Currently, the JPMML library does not check or enforce this constraint in any way.
protected static org.dmg.pmml.DataType integerToDouble(org.dmg.pmml.DataType dataType)
Copyright © 2015. All Rights Reserved.