Class 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
    • Constructor Detail

      • 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 Detail

      • fieldIterator

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

        public int getFieldCount()
      • hashCode

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

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