summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java
blob: 44d38b0d96ab45e4b12a35e92712b44f674860f4 (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 2016 Yahoo Inc. 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; }

}