/** * Create an instance of {@link SimpleSetPredicate } * */ public SimpleSetPredicate createSimpleSetPredicate() { return new SimpleSetPredicate(); }
SimpleSetPredicate simpleSetPredicate = new SimpleSetPredicate(); if ("!=".equalsIgnoreCase(operator)) { simpleSetPredicate.setBooleanOperator(PMMLOperators.IS_NOT_IN);
private void setupSimpleSetPredicate(int index, String fieldName, String operator, Array values) { if (index < 0 || index >= simpleSetPredicate.length) { throw new IndexOutOfBoundsException("Invalid index for setting up SimpleSetPredicate"); } simpleSetPredicate[index] = new SimpleSetPredicate(); simpleSetPredicate[index].setField(fieldName); simpleSetPredicate[index].setBooleanOperator(operator); simpleSetPredicate[index].setArray(values); }
@Before public void setUp() throws Exception { predicate = new SimpleSetPredicate(); predicate.setField("TF1"); predicate.setBooleanOperator("isIn"); }