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:
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, List<org.dmg.pmml.Field<?>> fields)Builder that generates aCommonCompilationDTOcreating packageName from source' segmentationPackageName and segment' id, preserving given fieldsCompilationDTOStringgetId()org.dmg.pmml.PredicategetPredicate()org.dmg.pmml.mining.SegmentgetSegment()NumbergetWeight()-
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
-
-
-
-
Method Detail
-
fromGeneratedPackageNameAndFields
public static SegmentCompilationDTO fromGeneratedPackageNameAndFields(MiningModelCompilationDTO source, org.dmg.pmml.mining.Segment segment, 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 String getId()
-
getWeight
public Number getWeight()
-
getPredicate
public org.dmg.pmml.Predicate getPredicate()
-
-