Package com.yahoo.search.schema
Class SchemaInfo.Session
java.lang.Object
com.yahoo.search.schema.SchemaInfo.Session
- Enclosing class:
- SchemaInfo
The schema information resolved to be relevant to this session.
-
Method Summary
Modifier and TypeMethodDescriptioncom.yahoo.tensor.TensorType
rankProfileInput
(String rankFeature, String rankProfile) Returns the type of the given rank feature name in the given profile, if it can be uniquely determined.
-
Method Details
-
rankProfileInput
Returns the type of the given rank feature name in the given profile, if it can be uniquely determined.- Parameters:
rankFeature
- the rank feature name, a string on the form "query(name)"rankProfile
- the name of the rank profile in which to locate the input declaration- Returns:
- the type of the declared input, or null if it is not declared or the rank profile is not found
- Throws:
IllegalArgumentException
- if the given rank profile does not exist in any schema, or the feature is declared in this rank profile in multiple schemas of this session with conflicting types
-