Search in sources :

Example 1 with DotProductItem

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))));
}
Also used : DotProductItem(com.yahoo.prelude.query.DotProductItem) NonNull(edu.umd.cs.findbugs.annotations.NonNull)

Aggregations

DotProductItem (com.yahoo.prelude.query.DotProductItem)1 NonNull (edu.umd.cs.findbugs.annotations.NonNull)1