Search in sources :

Example 1 with ExpNodePredicate

use of com.teradata.jaqy.utils.ExpNodePredicate in project jaqy by Teradata.

the class FilterCommand method execute.

@Override
public void execute(String[] args, boolean silent, JaqyInterpreter interpreter) throws Exception {
    SessionUtils.checkOpen(interpreter);
    String str = args[0].trim();
    if (str.length() == 0) {
        interpreter.error("missing predicate");
    }
    ExpNode exp = WhereParser.getExp(args[0]);
    interpreter.setPredicate(new ExpNodePredicate(exp));
}
Also used : ExpNodePredicate(com.teradata.jaqy.utils.ExpNodePredicate) ExpNode(com.teradata.jaqy.utils.exp.ExpNode)

Aggregations

ExpNodePredicate (com.teradata.jaqy.utils.ExpNodePredicate)1 ExpNode (com.teradata.jaqy.utils.exp.ExpNode)1