@Test public void getKiePMMLSimpleSetPredicate() { simpleSetPredicates.forEach(simpleSetPredicate -> { KiePMMLSimpleSetPredicate retrieved = KiePMMLPredicateFactory.getKiePMMLSimpleSetPredicate(simpleSetPredicate); commonVerifySimpleSetPredicate(retrieved, null); }); }
public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) { List<Object> values = getObjectsFromArray(predicate.getArray()); return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(), Collections.emptyList(), ARRAY_TYPE.byName(predicate.getArray().getType().value()), IN_NOTIN.byName(predicate.getBooleanOperator().value())) .withValues(values) .build(); }
KiePMMLPredicateFactory { public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) { List<Object> values = getObjectsFromArray(predicate.getArray()); return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(), Collections.emptyList(), ARRAY_TYPE.byName(predicate.getArray().getType().value()), IN_NOTIN.byName(predicate.getBooleanOperator().value())) .withValues(values) .build(); } }
KiePMMLPredicateFactory { public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) { List<Object> values = getObjectsFromArray(predicate.getArray()); return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(), Collections.emptyList(), ARRAY_TYPE.byName(predicate.getArray().getType().value()), IN_NOTIN.byName(predicate.getBooleanOperator().value())) .withValues(values) .build(); } private  KiePMMLPredicateFactory(); }
KiePMMLPredicateFactory { public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) { List<Object> values = getObjectsFromArray(predicate.getArray()); return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(), Collections.emptyList(), ARRAY_TYPE.byName(predicate.getArray().getType().value()), IN_NOTIN.byName(predicate.getBooleanOperator().value())) .withValues(values) .build(); } private  KiePMMLPredicateFactory(); static List<KiePMMLPredicate> getPredicates(List<Predicate> predicates, DataDictionary dataDictionary); static KiePMMLPredicate getPredicate(Predicate predicate, DataDictionary dataDictionary); static KiePMMLSimplePredicate getKiePMMLSimplePredicate(SimplePredicate predicate, DataType dataType); static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate); static KiePMMLCompoundPredicate getKiePMMLCompoundPredicate(CompoundPredicate predicate,
                                                                       DataDictionary dataDictionary); static KiePMMLTruePredicate getKiePMMLTruePredicate(); static KiePMMLFalsePredicate getKiePMMLFalsePredicate(); static Map<String, String> getPredicateSourcesMap(final KiePMMLPredicate kiePMMLPredicate,
                                                             final String packageName); }
KiePMMLPredicateFactory { public static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate) { List<Object> values = getObjectsFromArray(predicate.getArray()); return KiePMMLSimpleSetPredicate.builder(predicate.getField().getValue(), Collections.emptyList(), ARRAY_TYPE.byName(predicate.getArray().getType().value()), IN_NOTIN.byName(predicate.getBooleanOperator().value())) .withValues(values) .build(); } private  KiePMMLPredicateFactory(); static List<KiePMMLPredicate> getPredicates(List<Predicate> predicates, DataDictionary dataDictionary); static KiePMMLPredicate getPredicate(Predicate predicate, DataDictionary dataDictionary); static KiePMMLSimplePredicate getKiePMMLSimplePredicate(SimplePredicate predicate, DataType dataType); static KiePMMLSimpleSetPredicate getKiePMMLSimpleSetPredicate(SimpleSetPredicate predicate); static KiePMMLCompoundPredicate getKiePMMLCompoundPredicate(CompoundPredicate predicate,
                                                                       DataDictionary dataDictionary); static KiePMMLTruePredicate getKiePMMLTruePredicate(); static KiePMMLFalsePredicate getKiePMMLFalsePredicate(); static Map<String, String> getPredicateSourcesMap(final KiePMMLPredicate kiePMMLPredicate,
                                                             final String packageName);  }