Class Field

java.lang.Object
com.yahoo.search.schema.Field
All Implemented Interfaces:
FieldInfo

public class Field extends Object implements FieldInfo
A field in a schema.
Author:
bratseth
  • Constructor Details

  • Method Details

    • name

      public String name()
      Description copied from interface: FieldInfo
      Returns the name of this field or field set.
      Specified by:
      name in interface FieldInfo
    • type

      public Field.Type type()
      Specified by:
      type in interface FieldInfo
    • aliases

      public Set<String> aliases()
    • isAttribute

      public boolean isAttribute()
      Returns whether this field is an attribute, i.e. does indexing: attribute.
      Specified by:
      isAttribute in interface FieldInfo
    • isIndex

      public boolean isIndex()
      Returns whether this field is an index, i.e. does indexing: index.
      Specified by:
      isIndex in interface FieldInfo
    • 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