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

  • All Implemented Interfaces:
    Serializable, org.kie.pmml.compiler.api.dto.CompilationDTO<T>

    public class SegmentCompilationDTO<T extends org.dmg.pmml.Model>
    extends org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO<T>
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SegmentCompilationDTO fromGeneratedPackageNameAndFields​(MiningModelCompilationDTO source, org.dmg.pmml.mining.Segment segment, List<org.dmg.pmml.Field<?>> fields)
      Builder that generates a CommonCompilationDTO creating packageName from source' segmentationPackageName and segment' id, preserving given fields CompilationDTO
      String getId()  
      org.dmg.pmml.Predicate getPredicate()  
      org.dmg.pmml.mining.Segment getSegment()  
      Number getWeight()  
      • Methods inherited from class org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO

        addFields, compileAndLoadClass, getFields, getHasClassloader, getKieMiningFields, getKieOutputFields, getKiePMMLLocalTransformations, getKiePMMLMiningFields, getKiePMMLOutputFields, getKiePMMLTargetFields, getKiePMMLTransformationDictionary, getLocalTransformations, getMINING_FUNCTION, getMiningFunction, getMiningSchema, getModel, getModelName, getOpType, getOutput, getPackageCanonicalClassName, getPackageName, getPmml, getPMML_MODEL, getSimpleClassName, getSource, getTargetDataField, getTargetFieldName, getTargets, getTransformationDictionary
      • Methods inherited from interface org.kie.pmml.compiler.api.dto.CompilationDTO

        getKieTargetFields
    • Method Detail

      • fromGeneratedPackageNameAndFields

        public static SegmentCompilationDTO fromGeneratedPackageNameAndFields​(MiningModelCompilationDTO source,
                                                                              org.dmg.pmml.mining.Segment segment,
                                                                              List<org.dmg.pmml.Field<?>> fields)
        Builder that generates a CommonCompilationDTO creating packageName from source' segmentationPackageName and segment' id, preserving given fields CompilationDTO
        Parameters:
        source -
        segment -
        fields -
      • getSegment

        public org.dmg.pmml.mining.Segment getSegment()
      • getId

        public String getId()
      • getWeight

        public Number getWeight()
      • getPredicate

        public org.dmg.pmml.Predicate getPredicate()