Package org.kie.pmml.commons.model
Class KiePMMLFactoryModel
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.commons.model.KiePMMLModel
-
- org.kie.pmml.commons.model.KiePMMLFactoryModel
-
- All Implemented Interfaces:
java.io.Serializable,org.kie.pmml.api.models.PMMLModel,HasSourcesMap
public class KiePMMLFactoryModel extends KiePMMLModel implements HasSourcesMap
This is the model used to store sources forKiePMMLModelFactoryclasses;KiePMMLModelFactory, in turns, are used to retrieveList<KiePMMLModel>s from kjar insidePMMLAssemblerService- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kie.pmml.commons.model.KiePMMLModel
KiePMMLModel.Builder<T extends KiePMMLModel>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>sourcesMap-
Fields inherited from class org.kie.pmml.commons.model.KiePMMLModel
kiePMMLMiningFields, kiePMMLOutputFields, kiePMMLTargets, localTransformations, miningFields, miningFunction, outputFields, pmmlMODEL, targetField, transformationDictionary
-
Fields inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
extensions, id, name, parentId
-
-
Constructor Summary
Constructors Constructor Description KiePMMLFactoryModel(java.lang.String fileName, java.lang.String name, java.lang.String kmodulePackageName, java.util.Map<java.lang.String,java.lang.String> sourcesMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSourceMap(java.lang.String key, java.lang.String value)java.lang.Objectevaluate(java.util.Map<java.lang.String,java.lang.Object> requestData, org.kie.pmml.api.runtime.PMMLRuntimeContext pmmlContext)models, so it may be ignored by othersjava.lang.StringgetKModulePackageName()Method to retrieve the package name to be used inside kiebase/package attribute of kmodule.xml and to use for package creation inside PMMLAssemblerService By default returns the package name of the current instance To be eventually overridden.java.util.Map<java.lang.String,java.lang.String>getSourcesMap()-
Methods inherited from class org.kie.pmml.commons.model.KiePMMLModel
getFileName, getKiePMMLMiningFields, getKiePMMLOutputFields, getKiePMMLTargets, getLocalTransformations, getMiningFields, getMiningFunction, getOutputFields, getPmmlMODEL, getTargetField, getTransformationDictionary
-
Methods inherited from class org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
getExtensions, getId, getName, getParentId, setParentId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.pmml.commons.model.HasSourcesMap
isInterpreted
-
-
-
-
Method Detail
-
evaluate
public java.lang.Object evaluate(java.util.Map<java.lang.String,java.lang.Object> requestData, org.kie.pmml.api.runtime.PMMLRuntimeContext pmmlContext)Description copied from class:KiePMMLModelmodels, so it may be ignored by others- Specified by:
evaluatein classKiePMMLModelpmmlContext- used to accumulate additional evaluated values- Returns:
-
getSourcesMap
public java.util.Map<java.lang.String,java.lang.String> getSourcesMap()
- Specified by:
getSourcesMapin interfaceHasSourcesMap
-
addSourceMap
public void addSourceMap(java.lang.String key, java.lang.String value)- Specified by:
addSourceMapin interfaceHasSourcesMap
-
getKModulePackageName
public java.lang.String getKModulePackageName()
Description copied from class:KiePMMLModelMethod to retrieve the package name to be used inside kiebase/package attribute of kmodule.xml and to use for package creation inside PMMLAssemblerService By default returns the package name of the current instance To be eventually overridden.- Overrides:
getKModulePackageNamein classKiePMMLModel- Returns:
-
-