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