Package com.yahoo.vespa.documentmodel
Class DocumentSummary
java.lang.Object
com.yahoo.vespa.documentmodel.DocumentSummary
A document summary definition - a list of summary fields.
- Author:
- bratseth
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentSummary(String name, Schema owner) Creates a DocumentSummary with the given name. -
Method Summary
Modifier and TypeMethodDescriptionadd(DocumentSummary other) Adds another set of fields to this.add(SummaryField field) Adds a field to this.voidaddInherited(String inherited) Adds a parent of this.getSummaryField(String name) Returns the parent of this, if anybooleanReturns whether the user has noted explicitly that this summary accesses diskname()booleanowner()voidRemoves implicit fields which shouldn't be included.voidvoidsetFromDisk(boolean fromDisk) voidsetOmitSummaryFeatures(boolean value) toString()voidvalidate(com.yahoo.config.application.api.DeployLogger logger) values()
-
Constructor Details
-
DocumentSummary
Creates a DocumentSummary with the given name.
-
-
Method Details
-
name
-
owner
-
values
-
get
-
remove
-
add
Adds a field to this. The model is constrained to ensure that summary fields of the same name in different classes have the same summary transform, because this is what is supported by the backend currently.- Parameters:
field- the summary field to add- Returns:
- this for chaining
-
add
Adds another set of fields to this.- Parameters:
other- the fields to be added to this- Returns:
- this for chaining
-
setFromDisk
public void setFromDisk(boolean fromDisk) -
isFromDisk
public boolean isFromDisk()Returns whether the user has noted explicitly that this summary accesses disk -
setOmitSummaryFeatures
public void setOmitSummaryFeatures(boolean value) -
omitSummaryFeatures
public boolean omitSummaryFeatures() -
getSummaryField
-
getSummaryFields
-
purgeImplicits
public void purgeImplicits()Removes implicit fields which shouldn't be included. This is implicitly added fields which are sources for other fields. We then assume they are not intended to be added implicitly in addition. This should be called when this summary is complete. -
addInherited
Adds a parent of this. Both summaries must be present in the same schema, or a parent schema. -
inherited
Returns the parent of this, if any -
toString
-
validate
public void validate(com.yahoo.config.application.api.DeployLogger logger)
-