Class SummaryClass

java.lang.Object
com.yahoo.searchdefinition.derived.Derived
com.yahoo.searchdefinition.derived.SummaryClass
All Implemented Interfaces:
Exportable

public class SummaryClass extends Derived
A summary derived from a search definition. Each summary definition have at least one summary, the default which has the same name as the search definition.
Author:
bratseth
  • Field Details

  • Constructor Details

    • SummaryClass

      public SummaryClass(Schema schema, DocumentSummary summary, com.yahoo.config.application.api.DeployLogger deployLogger)
      Creates a summary class from a search definition summary
      Parameters:
      deployLogger - a DeployLogger
  • Method Details

    • fieldIterator

      public Iterator<SummaryClassField> fieldIterator()
      Returns an iterator of the fields of this summary. Removes on this iterator removes the field from this summary
    • addField

      public void addField(SummaryClassField field)
    • getFields

      public Map<String,SummaryClassField> getFields()
      Returns the writable map of fields of this summary
    • getField

      public SummaryClassField getField(String name)
    • getFieldCount

      public int getFieldCount()
    • hashCode

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

      public com.yahoo.vespa.config.search.SummaryConfig.Classes.Builder getSummaryClassConfig()
    • getDerivedName

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

      public String toString()
      Overrides:
      toString in class Object