summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/grouping/request/MathHypotFunction.java
blob: 4254f6cb1aa4363da5ab63287366c1be99b0b6f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 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));
    }
}