aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java
blob: 596c7501af6fdb65972e08e16bd90d771dab9217 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 Yahoo Holdings. 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 baldersheim
 */
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));
    }
}