All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mml-compiler-commons.7.63.0.Final.source-code.KiePMMLMiningFieldTemplate.tmpl Maven / Gradle / Ivy

package org.kie.pmml.compiler.commons;

import java.util.Collections;

import org.kie.pmml.commons.model.expressions.*;
import org.kie.pmml.commons.model.KiePMMLMiningField;

public class KiePMMLMiningFieldTemplate {


    private KiePMMLMiningField getKiePMMLMiningField() {
        KiePMMLMiningField miningField = KiePMMLMiningField.builder(name, Collections.emptyList())
                        .withFieldUsageType(fieldUsageType)
                        .withOpType(opType)
                        .withDataType(dataType)
                        .withMissingValueTreatmentMethod(missingValueTreatmentMethod)
                        .withInvalidValueTreatmentMethod(invalidValueTreatmentMethod)
                        .withMissingValueReplacement(missingValueReplacement)
                        .withInvalidValueReplacement(invalidValueReplacement)
                        .withAllowedValues(Arrays.asList(allowedValue1, allowedValue2))
                        .withIntervals(Arrays.asList(interval1, interval2))
                        .build();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy