Package org.jpmml.evaluator.functions
Class SplitFunction
- java.lang.Object
-
- org.jpmml.evaluator.functions.AbstractFunction
-
- org.jpmml.evaluator.functions.BinaryFunction
-
- org.jpmml.evaluator.functions.SplitFunction
-
- All Implemented Interfaces:
Function
public class SplitFunction extends BinaryFunction
A Java UDF for splitting a scalar string value to a collection of string values.
Pseudo-declaration of function:<DefineFunction name="..." dataType="collection of strings"> <ParameterField name="input" dataType="string"/> <ParameterField name="pattern" dataType="string"/> </DefineFunction>- See Also:
Pattern.split(CharSequence, int)
-
-
Constructor Summary
Constructors Constructor Description SplitFunction()SplitFunction(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>evaluate(String input, String regex)FieldValueevaluate(FieldValue first, FieldValue second)-
Methods inherited from class org.jpmml.evaluator.functions.BinaryFunction
evaluate
-
Methods inherited from class org.jpmml.evaluator.functions.AbstractFunction
getAliases, getName
-
-
-
-
Constructor Detail
-
SplitFunction
public SplitFunction()
-
SplitFunction
public SplitFunction(String name)
-
-
Method Detail
-
evaluate
public FieldValue evaluate(FieldValue first, FieldValue second)
- Specified by:
evaluatein classBinaryFunction
-
-