diff options
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java b/container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java new file mode 100644 index 00000000000..66931f37369 --- /dev/null +++ b/container-search/src/main/java/com/yahoo/prelude/fastsearch/RankProfile.java @@ -0,0 +1,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 <a href="mailto:bratseth@yahoo-inc.com">Jon Bratseth</a> + */ +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; } + +} |