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));
}
Aggregations