aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/query/RankItem.java
blob: 3ff2857b915ede6f7b5488e7049d18950d8fd62a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.query;


/**
 * Represents the rank operator, which only orders the result set and
 * does not change which hits are returned.
 *
 * The first argument is the part selecting the result set, the
 * following operands are used to order the result and does not affect
 * which hits are returned.
 *
 * @author bratseth
 */
public class RankItem extends CompositeItem {

    public ItemType getItemType() {
        return ItemType.RANK;
    }

    public String getName() {
        return "RANK";
    }

}