// 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; } }