use of com.yahoo.searchlib.rankingexpression.rule.ExpressionNode in project vespa by vespa-engine.
the class AbstractArrayContext method extractVariables.
private void extractVariables(ExpressionNode node, Set<String> variables) {
if (node instanceof ReferenceNode) {
ReferenceNode fNode = (ReferenceNode) node;
if (fNode.getArguments().expressions().size() > 0)
throw new UnsupportedOperationException("Array lookup is not supported with features having arguments)");
variables.add(fNode.toString());
} else if (node instanceof CompositeNode) {
CompositeNode cNode = (CompositeNode) node;
for (ExpressionNode child : cNode.children()) extractVariables(child, variables);
}
}
Aggregations