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
Nested ClassesModifier and TypeClassDescriptionstatic classThe schema information resolved to be relevant to this session. -
Constructor Summary
ConstructorsConstructorDescriptionSchemaInfo(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 SchemaInfoonly for unit testsstatic SchemaInfoempty()booleaninthashCode()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
-
createStub
only for unit tests -
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. -
parserSettings
-
newSession
-
empty
-
equals
-
hashCode
public int hashCode()
-