Package com.yahoo.schema.derived
Class SummaryMap
java.lang.Object
com.yahoo.schema.derived.Derived
com.yahoo.schema.derived.SummaryMap
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,Exportable
,com.yahoo.vespa.config.search.SummarymapConfig.Producer
public class SummaryMap
extends Derived
implements com.yahoo.vespa.config.search.SummarymapConfig.Producer
A summary map (describing search-time summary field transformations)
derived from a Schema.
- Author:
- bratseth
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
derive
(ImmutableSDField field, Schema schema) Derives the content of this configuration.protected void
Derives the content of this configuration.void
getConfig
(com.yahoo.vespa.config.search.SummarymapConfig.Builder builder) protected String
static boolean
isDynamicCommand
(String commandName) Does this summary command name stand for a dynamic transform? We need this because some model information is shared through configs instead of model - see usage A dynamic transform needs the query to perform its computations.Returns a read-only iterator of the FieldResultTransforms of this summary map
-
Method Details
-
derive
Description copied from class:Derived
Derives the content of this configuration. This default calls derive(Document) for each document and derive(SDField) for each search definition level field AND sets the name of this to the name of the input search definition -
derive
Description copied from class:Derived
Derives the content of this configuration. This default does nothing. -
resultTransforms
Returns a read-only iterator of the FieldResultTransforms of this summary map -
getDerivedName
- Specified by:
getDerivedName
in classDerived
-
isDynamicCommand
Does this summary command name stand for a dynamic transform? We need this because some model information is shared through configs instead of model - see usage A dynamic transform needs the query to perform its computations. -
getConfig
public void getConfig(com.yahoo.vespa.config.search.SummarymapConfig.Builder builder) - Specified by:
getConfig
in interfacecom.yahoo.vespa.config.search.SummarymapConfig.Producer
-