Class SummaryClass
java.lang.Object
com.yahoo.searchdefinition.derived.Derived
com.yahoo.searchdefinition.derived.SummaryClass
- All Implemented Interfaces:
Exportable
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 Summary
-
Constructor Summary
ConstructorDescriptionSummaryClass
(Schema schema, DocumentSummary summary, com.yahoo.config.application.api.DeployLogger deployLogger) Creates a summary class from a search definition summary -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(SummaryClassField field) Returns an iterator of the fields of this summary.protected String
int
Returns the writable map of fields of this summarycom.yahoo.vespa.config.search.SummaryConfig.Classes.Builder
int
hashCode()
toString()
-
Field Details
-
DOCUMENT_ID_FIELD
- See Also:
-
-
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
- aDeployLogger
-
-
Method Details
-
fieldIterator
Returns an iterator of the fields of this summary. Removes on this iterator removes the field from this summary -
addField
-
getFields
Returns the writable map of fields of this summary -
getField
-
getFieldCount
public int getFieldCount() -
hashCode
public int hashCode() -
getSummaryClassConfig
public com.yahoo.vespa.config.search.SummaryConfig.Classes.Builder getSummaryClassConfig() -
getDerivedName
- Specified by:
getDerivedName
in classDerived
-
toString
-