Class SchemaInfo

java.lang.Object
com.yahoo.search.schema.SchemaInfo

public class SchemaInfo extends Object
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
  • Constructor Details

    • SchemaInfo

      @Inject public SchemaInfo(SchemaInfoConfig schemaInfoConfig, com.yahoo.container.QrSearchersConfig qrSearchersConfig)
    • SchemaInfo

      public SchemaInfo(List<Schema> schemas, List<Cluster> clusters)
  • Method Details

    • schemas

      public Map<String,Schema> schemas()
      Returns all schemas configured in this application, indexed by schema name.
    • clusters

      public Map<String,Cluster> clusters()
      Returns information about all clusters available for searching in this applications, indexed by cluyster name.
    • newSession

      public SchemaInfo.Session newSession(Query query)
    • empty

      public static SchemaInfo empty()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object