use of com.yahoo.searchlib.expression.MultiArgFunctionNode in project vespa by vespa-engine.
the class ExpressionConverter method toSubNode.
private MultiArgFunctionNode toSubNode(Iterable<GroupingExpression> lst) {
MultiArgFunctionNode ret = new AddFunctionNode();
int i = 0;
for (GroupingExpression exp : lst) {
ExpressionNode node = toExpressionNode(exp);
if (++i > 1) {
node = new NegateFunctionNode(node);
}
ret.addArg(node);
}
return ret;
}
Aggregations