Package com.yahoo.searchdefinition
Class RankingConstants
- java.lang.Object
-
- com.yahoo.searchdefinition.RankingConstants
-
public class RankingConstants extends Object
Constant values for ranking/model execution tied to a search definition, or globally to an application package- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description RankingConstants(com.yahoo.config.application.api.FileRegistry fileRegistry, Optional<Schema> owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(RankingConstant constant)
Map<String,RankingConstant>
asMap()
Returns a read-only map of the ranking constants in this indexed by namevoid
computeIfAbsent(String name, Function<? super String,? extends RankingConstant> createConstant)
RankingConstant
get(String name)
Returns the ranking constant with the given name, or null if not presentvoid
putIfAbsent(RankingConstant constant)
-
-
-
Method Detail
-
add
public void add(RankingConstant constant)
-
putIfAbsent
public void putIfAbsent(RankingConstant constant)
-
computeIfAbsent
public void computeIfAbsent(String name, Function<? super String,? extends RankingConstant> createConstant)
-
get
public RankingConstant get(String name)
Returns the ranking constant with the given name, or null if not present
-
asMap
public Map<String,RankingConstant> asMap()
Returns a read-only map of the ranking constants in this indexed by name
-
-