Class KiePMMLASTFactoryUtils


  • public class KiePMMLASTFactoryUtils
    extends Object
    • Method Detail

      • getConstraintEntriesFromAndOrCompoundPredicate

        public static List<KiePMMLFieldOperatorValue> getConstraintEntriesFromAndOrCompoundPredicate​(org.dmg.pmml.CompoundPredicate compoundPredicate,
                                                                                                     Map<String,​KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
        Method to be invoked when compoundPredicate.getBooleanOperator() is AND or OR. Throws exception otherwise
        Parameters:
        compoundPredicate -
        fieldTypeMap -
        Returns:
      • getConstraintEntriesFromXOrCompoundPredicate

        public static List<KiePMMLFieldOperatorValue> getConstraintEntriesFromXOrCompoundPredicate​(org.dmg.pmml.CompoundPredicate compoundPredicate,
                                                                                                   Map<String,​KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
        Method to be invoked when compoundPredicate.getBooleanOperator() is XOR. Throws exception otherwise
        Parameters:
        compoundPredicate -
        fieldTypeMap -
        Returns:
      • getConstraintEntryFromSimplePredicates

        public static KiePMMLFieldOperatorValue getConstraintEntryFromSimplePredicates​(String fieldName,
                                                                                       org.kie.pmml.api.enums.BOOLEAN_OPERATOR containerOperator,
                                                                                       List<org.dmg.pmml.SimplePredicate> simplePredicates,
                                                                                       Map<String,​KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
        This method should be invoked with a List<SimplePredicate> where each SimplePredicate is referring to the same field
        Parameters:
        fieldName -
        containerOperator -
        simplePredicates -
        fieldTypeMap -
        Returns: