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 TypeMethodDescriptionLooks up a field or field set by the given name or alias in the schemas resolved for this query.boolean
Returns true if this only searches streaming clusters.com.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
-
isStreaming
public boolean isStreaming()Returns true if this only searches streaming clusters. -
fieldInfo
Looks up a field or field set by the given name or alias in the schemas resolved for this query. If there are several fields or field sets by this name or alias across the schemas of this session, one is chosen by random.- Parameters:
fieldName
- the name or alias of the field or field set. If this is empty, the name "default" is looked up.- Returns:
- the appropriate field or empty if no field or field set has this name or alias
-
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
-