use of com.yahoo.prelude.query.DotProductItem in project vespa by vespa-engine.
the class YqlParser method buildDotProduct.
@NonNull
private Item buildDotProduct(OperatorNode<ExpressionOperator> ast) {
List<OperatorNode<ExpressionOperator>> args = ast.getArgument(1);
Preconditions.checkArgument(args.size() == 2, "Expected 2 arguments, got %s.", args.size());
return fillWeightedSet(ast, args.get(1), new DotProductItem(getIndex(args.get(0))));
}
Aggregations