Package com.yahoo.search.schema
Class SchemaInfo
java.lang.Object
com.yahoo.search.schema.SchemaInfo
Information about all the schemas configured in the application this container is a part of.
Usage:
SchemaInfo.Session session = schemaInfo.newSession(query); // once when starting to process a query
session.get(...) // access information about the schema(s) relevant to the query
This is immutable.- Author:
- bratseth
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The schema information resolved to be relevant to this session. -
Constructor Summary
ConstructorDescriptionSchemaInfo
(SchemaInfoConfig schemaInfoConfig, com.yahoo.container.QrSearchersConfig qrSearchersConfig) SchemaInfo
(List<Schema> schemas, List<Cluster> clusters) -
Method Summary
Modifier and TypeMethodDescriptionclusters()
Returns information about all clusters available for searching in this application, indexed by cluster name.static SchemaInfo
empty()
boolean
int
hashCode()
newSession
(Query query) schemas()
Returns all schemas configured in this application, indexed by schema name.
-
Constructor Details
-
SchemaInfo
@Inject public SchemaInfo(SchemaInfoConfig schemaInfoConfig, com.yahoo.container.QrSearchersConfig qrSearchersConfig) -
SchemaInfo
-
-
Method Details
-
schemas
Returns all schemas configured in this application, indexed by schema name. -
clusters
Returns information about all clusters available for searching in this application, indexed by cluster name. -
newSession
-
empty
-
equals
-
hashCode
public int hashCode()
-