Package org.kie.pmml.compiler.api.dto
Interface CompilationDTO<T extends org.dmg.pmml.Model>
-
- Type Parameters:
T-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
CommonCompilationDTO
public interface CompilationDTO<T extends org.dmg.pmml.Model> extends java.io.SerializableInterface to be implemented by all concrete compilation dtos
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Map<java.lang.String,byte[]>compileClasses(java.util.Map<java.lang.String,java.lang.String> sourcesMap)Compile the given sources and add them to givenClassloaderof the current instance.java.util.List<org.dmg.pmml.Field<?>>getFields()Should contain all fields retrieved from model, i.e.java.lang.StringgetFileName()Returns the name of the file containing theModel, without the suffix `.pmml`default java.util.List<org.kie.pmml.api.models.MiningField>getKieMiningFields()default java.util.List<org.kie.pmml.api.models.OutputField>getKieOutputFields()default java.util.List<org.kie.pmml.api.models.TargetField>getKieTargetFields()org.dmg.pmml.LocalTransformationsgetLocalTransformations()org.kie.pmml.api.enums.MINING_FUNCTIONgetMINING_FUNCTION()org.dmg.pmml.MiningFunctiongetMiningFunction()org.dmg.pmml.MiningSchemagetMiningSchema()TgetModel()java.lang.StringgetModelName()Returns the model name of the underlyingModelorg.dmg.pmml.OpTypegetOpType()org.dmg.pmml.OutputgetOutput()java.lang.StringgetPackageCanonicalClassName()Returns the full, canonical, sanitized class namejava.lang.StringgetPackageName()The sanitized base package nameorg.dmg.pmml.PMMLgetPmml()The originalPMMLorg.kie.pmml.api.enums.PMML_MODELgetPMML_MODEL()org.kie.pmml.api.compilation.PMMLCompilationContextgetPmmlContext()java.lang.StringgetSimpleClassName()Returns the simple, sanitized class nameorg.dmg.pmml.DataFieldgetTargetDataField()java.lang.StringgetTargetFieldName()org.dmg.pmml.TargetsgetTargets()org.dmg.pmml.TransformationDictionarygetTransformationDictionary()
-
-
-
Method Detail
-
getPmml
org.dmg.pmml.PMML getPmml()
The originalPMML- Returns:
-
getTransformationDictionary
org.dmg.pmml.TransformationDictionary getTransformationDictionary()
-
getModel
T getModel()
-
getMiningSchema
org.dmg.pmml.MiningSchema getMiningSchema()
-
getMiningFunction
org.dmg.pmml.MiningFunction getMiningFunction()
-
getLocalTransformations
org.dmg.pmml.LocalTransformations getLocalTransformations()
-
getOutput
org.dmg.pmml.Output getOutput()
-
getTargets
org.dmg.pmml.Targets getTargets()
-
getFields
java.util.List<org.dmg.pmml.Field<?>> getFields()
Should contain all fields retrieved from model, i.e. DataFields from DataDictionary, DerivedFields from Transformations/LocalTransformations, OutputFields- Returns:
-
getTargetDataField
org.dmg.pmml.DataField getTargetDataField()
-
getOpType
org.dmg.pmml.OpType getOpType()
-
getModelName
java.lang.String getModelName()
Returns the model name of the underlyingModel- Returns:
-
getFileName
java.lang.String getFileName()
Returns the name of the file containing theModel, without the suffix `.pmml`- Returns:
-
getTargetFieldName
java.lang.String getTargetFieldName()
-
getPackageName
java.lang.String getPackageName()
The sanitized base package name- Returns:
-
getSimpleClassName
java.lang.String getSimpleClassName()
Returns the simple, sanitized class name- Returns:
-
getPackageCanonicalClassName
java.lang.String getPackageCanonicalClassName()
Returns the full, canonical, sanitized class name- Returns:
-
compileClasses
java.util.Map<java.lang.String,byte[]> compileClasses(java.util.Map<java.lang.String,java.lang.String> sourcesMap)
Compile the given sources and add them to givenClassloaderof the current instance. Returns theClasswith the current canonicalClassName- Parameters:
sourcesMap-- Returns:
-
getPmmlContext
org.kie.pmml.api.compilation.PMMLCompilationContext getPmmlContext()
-
getPMML_MODEL
org.kie.pmml.api.enums.PMML_MODEL getPMML_MODEL()
-
getMINING_FUNCTION
org.kie.pmml.api.enums.MINING_FUNCTION getMINING_FUNCTION()
-
getKieMiningFields
default java.util.List<org.kie.pmml.api.models.MiningField> getKieMiningFields()
-
getKieOutputFields
default java.util.List<org.kie.pmml.api.models.OutputField> getKieOutputFields()
-
getKieTargetFields
default java.util.List<org.kie.pmml.api.models.TargetField> getKieTargetFields()
-
-