Class SegmentCompilationDTO<T extends org.dmg.pmml.Model>
- java.lang.Object
-
- org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO<T>
-
- org.kie.pmml.models.mining.compiler.dto.SegmentCompilationDTO<T>
-
- All Implemented Interfaces:
java.io.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 SegmentCompilationDTOfromGeneratedPackageNameAndFields(MiningModelCompilationDTO source, org.dmg.pmml.mining.Segment segment, java.util.List<org.dmg.pmml.Field<?>> fields)Builder that generates aCommonCompilationDTOcreating packageName from source' segmentationPackageName and segment' id, preserving given fieldsCompilationDTOjava.lang.StringgetId()org.dmg.pmml.PredicategetPredicate()org.dmg.pmml.mining.SegmentgetSegment()java.lang.NumbergetWeight()-
Methods inherited from class org.kie.pmml.compiler.commons.dto.AbstractSpecificCompilationDTO
addFields, compileClasses, getFields, getFileName, getKieMiningFields, getKieOutputFields, getKiePMMLLocalTransformations, getKiePMMLMiningFields, getKiePMMLOutputFields, getKiePMMLTargetFields, getKiePMMLTransformationDictionary, getLocalTransformations, getMINING_FUNCTION, getMiningFunction, getMiningSchema, getModel, getModelName, getOpType, getOutput, getPackageCanonicalClassName, getPackageName, getPmml, getPMML_MODEL, getPmmlContext, getSimpleClassName, getSource, getTargetDataField, getTargetFieldName, getTargets, getTransformationDictionary
-
-
-
-
Method Detail
-
fromGeneratedPackageNameAndFields
public static SegmentCompilationDTO fromGeneratedPackageNameAndFields(MiningModelCompilationDTO source, org.dmg.pmml.mining.Segment segment, java.util.List<org.dmg.pmml.Field<?>> fields)
Builder that generates aCommonCompilationDTOcreating packageName from source' segmentationPackageName and segment' id, preserving given fieldsCompilationDTO- Parameters:
source-segment-fields-
-
getSegment
public org.dmg.pmml.mining.Segment getSegment()
-
getId
public java.lang.String getId()
-
getWeight
public java.lang.Number getWeight()
-
getPredicate
public org.dmg.pmml.Predicate getPredicate()
-
-