aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java
blob: fe9b78046ce60ea61cadc88593da7429608a4843 (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
26
27
28
29
30
31
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.fastsearch;

/**
 * Information about a rank profile
 *
 * @author bratseth
 */
class RankProfile {

    private final String name;

    private final boolean hasSummaryFeatures;

    private final boolean hasRankFeatures;

    public RankProfile(String name, boolean hasSummaryFeatures, boolean hasRankFeatures) {
        this.name = name;
        this.hasSummaryFeatures = hasSummaryFeatures;
        this.hasRankFeatures = hasRankFeatures;
    }

    public String getName() { return name; }

    /** Returns true if this rank profile has summary features */
    public boolean hasSummaryFeatures() { return hasSummaryFeatures; }

    /** Returns true if this rank profile has rank features */
    public boolean hasRankFeatures() { return hasRankFeatures; }

}