Class CommonCompilationDTO<T extends org.dmg.pmml.Model>

    • Field Detail

      • packageName

        protected final String packageName
    • Method Detail

      • fromGeneratedPackageNameAndFields

        public static <T extends org.dmg.pmml.Model> CommonCompilationDTO<T> fromGeneratedPackageNameAndFields​(String packageName,
                                                                                                               org.dmg.pmml.PMML pmml,
                                                                                                               T model,
                                                                                                               org.kie.pmml.commons.model.HasClassLoader hasClassloader)
        Builder that create the packageName name from the given one and retrieve fields from pmml and model
        Parameters:
        pmml -
        model -
        hasClassloader -
        packageName -
      • fromPackageNameAndFields

        public static <T extends org.dmg.pmml.Model> CommonCompilationDTO<T> fromPackageNameAndFields​(org.dmg.pmml.PMML pmml,
                                                                                                      T model,
                                                                                                      org.kie.pmml.commons.model.HasClassLoader hasClassloader,
                                                                                                      String packageName,
                                                                                                      List<org.dmg.pmml.Field<?>> fields)
        Builder that preserve given packageName and fields CompilationDTO
        Parameters:
        pmml -
        model -
        hasClassloader -
        packageName -
        fields -
      • getPmml

        public org.dmg.pmml.PMML getPmml()
        Description copied from interface: CompilationDTO
        The original PMML
        Specified by:
        getPmml in interface CompilationDTO<T extends org.dmg.pmml.Model>
        Returns:
      • 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()
        Description copied from interface: CompilationDTO
        Should contain all fields retrieved from model, i.e. DataFields from DataDictionary, DerivedFields from Transformations/LocalTransformations, OutputFields
        Specified by:
        getFields in interface CompilationDTO<T extends org.dmg.pmml.Model>
        Returns:
      • 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()
        Description copied from interface: CompilationDTO
        Returns the model name of the underlying Model
        Specified by:
        getModelName in interface CompilationDTO<T extends org.dmg.pmml.Model>
        Returns:
      • compileAndLoadClass

        public Class<?> compileAndLoadClass​(Map<String,​String> sourcesMap)
        Description copied from interface: CompilationDTO
        Compile the given sources and add them to given Classloader of the current instance. Returns the Class with the current canonicalClassName
        Specified by:
        compileAndLoadClass in interface CompilationDTO<T extends org.dmg.pmml.Model>
        Returns:
        See Also:
        HasClassLoader.compileAndLoadClass(Map, String)
      • getHasClassloader

        public org.kie.pmml.commons.model.HasClassLoader getHasClassloader()
        Specified by:
        getHasClassloader 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>
      • getOutputFields

        public List<org.dmg.pmml.OutputField> getOutputFields()