Class PMMLCommandExecutorImpl
- java.lang.Object
-
- org.kie.pmml.evaluator.assembler.command.PMMLCommandExecutorImpl
-
- All Implemented Interfaces:
org.kie.internal.pmml.PMMLCommandExecutor
public class PMMLCommandExecutorImpl extends Object implements org.kie.internal.pmml.PMMLCommandExecutor
-
-
Constructor Summary
Constructors Constructor Description PMMLCommandExecutorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kie.api.pmml.PMML4Resultexecute(org.kie.api.pmml.PMMLRequestData pmmlRequestData, org.kie.api.runtime.Context context)Evaluate the givenPMMLRequestDataprotected org.kie.api.pmml.PMMLRequestDatagetCleanedRequestData(org.kie.api.pmml.PMMLRequestData source)Return a newPMMLRequestDatawith the values of the originalPMMLRequestDatarestored to their actual type.protected voidvalidate(org.kie.api.pmml.PMMLRequestData pmmlRequestData)
-
-
-
Method Detail
-
execute
public org.kie.api.pmml.PMML4Result execute(org.kie.api.pmml.PMMLRequestData pmmlRequestData, org.kie.api.runtime.Context context)Evaluate the givenPMMLRequestData- Specified by:
executein interfaceorg.kie.internal.pmml.PMMLCommandExecutor- Parameters:
pmmlRequestData- : it must contain the pmml file name (in the source property)context- and the model name- Returns:
-
validate
protected void validate(org.kie.api.pmml.PMMLRequestData pmmlRequestData)
-
getCleanedRequestData
protected org.kie.api.pmml.PMMLRequestData getCleanedRequestData(org.kie.api.pmml.PMMLRequestData source)
Return a newPMMLRequestDatawith the values of the originalPMMLRequestDatarestored to their actual type. Needed becauseJSONMarshallerPMMLParamInfoconvert all of them toString- Parameters:
source-- Returns:
- See Also:
- JSONMarshallerPMMLParamInfo.PMMLParamSerializer.serialize(ParameterInfo, JsonGenerator, SerializerProvider)
-
-