Class AbstractSpecificCompilationDTO<T extends org.dmg.pmml.Model>
java.lang.Object
org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO<T>
- All Implemented Interfaces:
Serializable,CompilationDTO<T>
public abstract class AbstractSpecificCompilationDTO<T extends org.dmg.pmml.Model>
extends Object
implements CompilationDTO<T>
Abstract class to be extended by all model-specific compilation dtos
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSpecificCompilationDTO(org.dmg.pmml.PMML pmml, T model, org.kie.pmml.api.compilation.PMMLCompilationContext pmmlContext, String fileName, String packageName, List<org.dmg.pmml.Field<?>> fields) Protected constructor that generate aCommonCompilationDTOpreserving given packageName and fieldsprotectedProtected constructor that use givenCompilationDTO -
Method Summary
Modifier and TypeMethodDescriptionvoidAddFields to current instance, eventually replacing them if already presentcompileClasses(Map<String, String> sourcesMap) List<org.dmg.pmml.Field<?>>List<org.kie.pmml.api.models.MiningField>List<org.kie.pmml.api.models.OutputField>org.kie.pmml.commons.transformations.KiePMMLLocalTransformationsList<org.kie.pmml.commons.model.KiePMMLMiningField>List<org.kie.pmml.commons.model.KiePMMLOutputField>List<org.kie.pmml.commons.model.KiePMMLTarget>org.kie.pmml.commons.transformations.KiePMMLTransformationDictionaryorg.dmg.pmml.LocalTransformationsorg.kie.pmml.api.enums.MINING_FUNCTIONorg.dmg.pmml.MiningFunctionorg.dmg.pmml.MiningSchemagetModel()org.dmg.pmml.OpTypeorg.dmg.pmml.Outputorg.dmg.pmml.PMMLgetPmml()org.kie.pmml.api.enums.PMML_MODELorg.kie.pmml.api.compilation.PMMLCompilationContextprotected CompilationDTO<T>org.dmg.pmml.DataFieldorg.dmg.pmml.Targetsorg.dmg.pmml.TransformationDictionaryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.pmml.compiler.api.dto.CompilationDTO
getKieTargetFields
-
Constructor Details
-
AbstractSpecificCompilationDTO
protected AbstractSpecificCompilationDTO(org.dmg.pmml.PMML pmml, T model, org.kie.pmml.api.compilation.PMMLCompilationContext pmmlContext, String fileName, String packageName, List<org.dmg.pmml.Field<?>> fields) Protected constructor that generate aCommonCompilationDTOpreserving given packageName and fields- Parameters:
pmml-model-pmmlContext-packageName-
-
AbstractSpecificCompilationDTO
Protected constructor that use givenCompilationDTO- Parameters:
source-
-
-
Method Details
-
getPmml
public org.dmg.pmml.PMML getPmml()- Specified by:
getPmmlin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getTransformationDictionary
public org.dmg.pmml.TransformationDictionary getTransformationDictionary()- Specified by:
getTransformationDictionaryin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getModel
- Specified by:
getModelin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getMiningSchema
public org.dmg.pmml.MiningSchema getMiningSchema()- Specified by:
getMiningSchemain interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getMiningFunction
public org.dmg.pmml.MiningFunction getMiningFunction()- Specified by:
getMiningFunctionin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getLocalTransformations
public org.dmg.pmml.LocalTransformations getLocalTransformations()- Specified by:
getLocalTransformationsin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getOutput
public org.dmg.pmml.Output getOutput()- Specified by:
getOutputin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getTargets
public org.dmg.pmml.Targets getTargets()- Specified by:
getTargetsin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getFields
- Specified by:
getFieldsin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getTargetDataField
public org.dmg.pmml.DataField getTargetDataField()- Specified by:
getTargetDataFieldin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getOpType
public org.dmg.pmml.OpType getOpType()- Specified by:
getOpTypein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getModelName
- Specified by:
getModelNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getFileName
- Specified by:
getFileNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getTargetFieldName
- Specified by:
getTargetFieldNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getPackageName
- Specified by:
getPackageNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getSimpleClassName
- Specified by:
getSimpleClassNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getPackageCanonicalClassName
- Specified by:
getPackageCanonicalClassNamein interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
compileClasses
- Specified by:
compileClassesin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getPmmlContext
public org.kie.pmml.api.compilation.PMMLCompilationContext getPmmlContext()- Specified by:
getPmmlContextin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getPMML_MODEL
public org.kie.pmml.api.enums.PMML_MODEL getPMML_MODEL()- Specified by:
getPMML_MODELin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getMINING_FUNCTION
public org.kie.pmml.api.enums.MINING_FUNCTION getMINING_FUNCTION()- Specified by:
getMINING_FUNCTIONin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getKieMiningFields
- Specified by:
getKieMiningFieldsin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
getKieOutputFields
- Specified by:
getKieOutputFieldsin interfaceCompilationDTO<T extends org.dmg.pmml.Model>
-
addFields
AddFields to current instance, eventually replacing them if already present- Parameters:
toAdd-
-
getSource
-
getKiePMMLMiningFields
-
getKiePMMLOutputFields
-
getKiePMMLTargetFields
-
getKiePMMLTransformationDictionary
public org.kie.pmml.commons.transformations.KiePMMLTransformationDictionary getKiePMMLTransformationDictionary() -
getKiePMMLLocalTransformations
public org.kie.pmml.commons.transformations.KiePMMLLocalTransformations getKiePMMLLocalTransformations()
-