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 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 a CommonCompilationDTO preserving given packageName and fields
      Parameters:
      pmml -
      model -
      pmmlContext -
      packageName -
    • AbstractSpecificCompilationDTO

      protected AbstractSpecificCompilationDTO(CompilationDTO<T> source)
      Protected constructor that use given CompilationDTO
      Parameters:
      source -
  • Method Details

    • getPmml

      public org.dmg.pmml.PMML getPmml()
      Specified by:
      getPmml in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getTransformationDictionary

      public org.dmg.pmml.TransformationDictionary getTransformationDictionary()
      Specified by:
      getTransformationDictionary in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getModel

      public T getModel()
      Specified by:
      getModel in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getMiningSchema

      public org.dmg.pmml.MiningSchema getMiningSchema()
      Specified by:
      getMiningSchema in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getMiningFunction

      public org.dmg.pmml.MiningFunction getMiningFunction()
      Specified by:
      getMiningFunction in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getLocalTransformations

      public org.dmg.pmml.LocalTransformations getLocalTransformations()
      Specified by:
      getLocalTransformations in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getOutput

      public org.dmg.pmml.Output getOutput()
      Specified by:
      getOutput in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getTargets

      public org.dmg.pmml.Targets getTargets()
      Specified by:
      getTargets in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getFields

      public List<org.dmg.pmml.Field<?>> getFields()
      Specified by:
      getFields in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getTargetDataField

      public org.dmg.pmml.DataField getTargetDataField()
      Specified by:
      getTargetDataField in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getOpType

      public org.dmg.pmml.OpType getOpType()
      Specified by:
      getOpType in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getModelName

      public String getModelName()
      Specified by:
      getModelName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getFileName

      public String getFileName()
      Specified by:
      getFileName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getTargetFieldName

      public String getTargetFieldName()
      Specified by:
      getTargetFieldName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getPackageName

      public String getPackageName()
      Specified by:
      getPackageName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getSimpleClassName

      public String getSimpleClassName()
      Specified by:
      getSimpleClassName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getPackageCanonicalClassName

      public String getPackageCanonicalClassName()
      Specified by:
      getPackageCanonicalClassName in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • compileClasses

      public Map<String,byte[]> compileClasses(Map<String,String> sourcesMap)
      Specified by:
      compileClasses in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getPmmlContext

      public org.kie.pmml.api.compilation.PMMLCompilationContext getPmmlContext()
      Specified by:
      getPmmlContext in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getPMML_MODEL

      public org.kie.pmml.api.enums.PMML_MODEL getPMML_MODEL()
      Specified by:
      getPMML_MODEL in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getMINING_FUNCTION

      public org.kie.pmml.api.enums.MINING_FUNCTION getMINING_FUNCTION()
      Specified by:
      getMINING_FUNCTION in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getKieMiningFields

      public List<org.kie.pmml.api.models.MiningField> getKieMiningFields()
      Specified by:
      getKieMiningFields in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • getKieOutputFields

      public List<org.kie.pmml.api.models.OutputField> getKieOutputFields()
      Specified by:
      getKieOutputFields in interface CompilationDTO<T extends org.dmg.pmml.Model>
    • addFields

      public void addFields(List<org.dmg.pmml.Field<?>> toAdd)
      Add Fields to current instance, eventually replacing them if already present
      Parameters:
      toAdd -
    • getSource

      protected CompilationDTO<T> getSource()
    • getKiePMMLMiningFields

      public List<org.kie.pmml.commons.model.KiePMMLMiningField> getKiePMMLMiningFields()
    • getKiePMMLOutputFields

      public List<org.kie.pmml.commons.model.KiePMMLOutputField> getKiePMMLOutputFields()
    • getKiePMMLTargetFields

      public List<org.kie.pmml.commons.model.KiePMMLTarget> getKiePMMLTargetFields()
    • getKiePMMLTransformationDictionary

      public org.kie.pmml.commons.transformations.KiePMMLTransformationDictionary getKiePMMLTransformationDictionary()
    • getKiePMMLLocalTransformations

      public org.kie.pmml.commons.transformations.KiePMMLLocalTransformations getKiePMMLLocalTransformations()