Class Schema

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

public class Schema extends Object
Information about a schema which is part of the application running this. This is immutable.
Author:
bratseth
  • Method Details

    • name

      public String name()
    • fields

      public Map<String,Field> fields()
    • rankProfiles

      public Map<String,RankProfile> rankProfiles()
    • documentSummaries

      public Map<String,DocumentSummary> documentSummaries()
    • fieldInfo

      public Optional<FieldInfo> fieldInfo(String fieldName)
      Looks up a field or field set by the given name or alias in this schema.
      Parameters:
      fieldName - the name or alias of the field or field set. If this is empty, the name "default" is looked up
      Returns:
      information about the field or field set with the given name, or empty if no item with this name exists
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object