Class AttributeFields

java.lang.Object
com.yahoo.schema.derived.Derived
com.yahoo.schema.derived.AttributeFields
All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, Exportable, com.yahoo.vespa.config.search.AttributesConfig.Producer

public class AttributeFields extends Derived implements com.yahoo.vespa.config.search.AttributesConfig.Producer
The set of all attribute fields defined by a search definition
Author:
bratseth
  • Field Details

  • Constructor Details

    • AttributeFields

      public AttributeFields(Schema schema)
  • Method Details

    • derive

      protected void derive(ImmutableSDField field, Schema schema)
      Derives everything from a field
      Overrides:
      derive in class Derived
    • getAttribute

      public Attribute getAttribute(String attributeName)
      Returns an attribute by name, or null if it doesn't exist
    • containsAttribute

      public boolean containsAttribute(String attributeName)
    • attributeIterator

      public Iterator<Attribute> attributeIterator()
      Returns a read only attribute iterator
    • attributes

      public Collection<Attribute> attributes()
    • structFieldAttributes

      public Collection<Attribute> structFieldAttributes(String baseFieldName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDerivedName

      protected String getDerivedName()
      Specified by:
      getDerivedName in class Derived
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder)
      Specified by:
      getConfig in interface com.yahoo.vespa.config.search.AttributesConfig.Producer
    • getConfig

      public void getConfig(com.yahoo.vespa.config.search.AttributesConfig.Builder builder, AttributeFields.FieldSet fs, long maxUnCommittedMemory)