diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java b/container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java new file mode 100644 index 00000000000..777a94f9107 --- /dev/null +++ b/container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java @@ -0,0 +1,19 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. +package com.yahoo.search.grouping.request; + +import java.util.Arrays; + +/** + * @author balder + */ +public class MathHypotFunction extends FunctionNode { + /** + * Constructs a new instance of this class. + * + * @param x The expression to evaluate for x, double value will be requested. + * @param y The expression to evaluate for y exponent, double value will be requested. + */ + public MathHypotFunction(GroupingExpression x, GroupingExpression y) { + super("math.hypot", Arrays.asList(x, y)); + } +} |