Package org.elasticsearch.plugins
Class SearchPlugin.PipelineAggregationSpec
java.lang.Object
org.elasticsearch.plugins.SearchPlugin.SearchExtensionSpec<PipelineAggregationBuilder,org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder>>
org.elasticsearch.plugins.SearchPlugin.PipelineAggregationSpec
- Enclosing interface:
- SearchPlugin
public static class SearchPlugin.PipelineAggregationSpec
extends SearchPlugin.SearchExtensionSpec<PipelineAggregationBuilder,org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder>>
Specification for a
PipelineAggregator
.-
Constructor Summary
ConstructorDescriptionPipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)
Deprecated.PipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, PipelineAggregator.Parser parser)
Deprecated.prefer the ctor that takes aContextParser
PipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)
Specification of aPipelineAggregator
.PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)
Deprecated.UsePipelineAggregationSpec(ParseField, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, PipelineAggregator.Parser parser)
Deprecated.prefer the ctor that takes aContextParser
PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)
Specification of aPipelineAggregator
. -
Method Summary
Modifier and TypeMethodDescriptionaddResultReader(String writeableName, Writeable.Reader<? extends InternalAggregation> resultReader)
Add a reader for the shard level results of the aggregation.addResultReader(Writeable.Reader<? extends InternalAggregation> resultReader)
Add a reader for the shard level results of the aggregation with SearchPlugin.SearchExtensionSpec.getName()'sParseField.getPreferredName()
as theNamedWriteable.getWriteableName()
.Writeable.Reader<? extends PipelineAggregator>
Deprecated.Pipelines implemented after 7.8.0 do not need to be sent across the wireMap<String,Writeable.Reader<? extends InternalAggregation>>
Get the readers that must be registered for this aggregation's results.Methods inherited from class org.elasticsearch.plugins.SearchPlugin.SearchExtensionSpec
getName, getParser, getReader
-
Constructor Details
-
PipelineAggregationSpec
public PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)Specification of aPipelineAggregator
.- Parameters:
name
- holds the names by which this aggregation might be parsed. TheParseField.getPreferredName()
is special as it is the name by under which the readers are registered. So it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
parser
- reads the aggregation builder from XContent
-
PipelineAggregationSpec
public PipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)Specification of aPipelineAggregator
.- Parameters:
name
- name by which this aggregation might be parsed or deserialized. Make sure it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
parser
- reads the aggregation builder from XContent
-
PipelineAggregationSpec
@Deprecated public PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)Deprecated.UsePipelineAggregationSpec(ParseField, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0Specification of aPipelineAggregator
.- Parameters:
name
- holds the names by which this aggregation might be parsed. TheParseField.getPreferredName()
is special as it is the name by under which the readers are registered. So it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
aggregatorReader
- reads thePipelineAggregator
from a streamparser
- reads the aggregation builder from XContent
-
PipelineAggregationSpec
@Deprecated public PipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, org.elasticsearch.common.xcontent.ContextParser<String,? extends PipelineAggregationBuilder> parser)Deprecated.UsePipelineAggregationSpec(String, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0Specification of aPipelineAggregator
.- Parameters:
name
- name by which this aggregation might be parsed or deserialized. Make sure it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
aggregatorReader
- reads thePipelineAggregator
from a streamparser
- reads the aggregation builder from XContent
-
PipelineAggregationSpec
@Deprecated public PipelineAggregationSpec(org.elasticsearch.common.xcontent.ParseField name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, PipelineAggregator.Parser parser)Deprecated.prefer the ctor that takes aContextParser
Specification of aPipelineAggregator
.- Parameters:
name
- holds the names by which this aggregation might be parsed. TheParseField.getPreferredName()
is special as it is the name by under which the readers are registered. So it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
aggregatorReader
- reads thePipelineAggregator
from a streamparser
- reads the aggregation builder from XContent
-
PipelineAggregationSpec
@Deprecated public PipelineAggregationSpec(String name, Writeable.Reader<? extends PipelineAggregationBuilder> builderReader, Writeable.Reader<? extends PipelineAggregator> aggregatorReader, PipelineAggregator.Parser parser)Deprecated.prefer the ctor that takes aContextParser
Specification of aPipelineAggregator
.- Parameters:
name
- name by which this aggregation might be parsed or deserialized. Make sure it is the name that thePipelineAggregationBuilder
andPipelineAggregator
should return fromNamedWriteable.getWriteableName()
.builderReader
- the reader registered for this aggregation's builder. Typically a reference to a constructor that takes aStreamInput
aggregatorReader
- reads thePipelineAggregator
from a stream
-
-
Method Details
-
addResultReader
public SearchPlugin.PipelineAggregationSpec addResultReader(Writeable.Reader<? extends InternalAggregation> resultReader)Add a reader for the shard level results of the aggregation with SearchPlugin.SearchExtensionSpec.getName()'sParseField.getPreferredName()
as theNamedWriteable.getWriteableName()
. -
addResultReader
public SearchPlugin.PipelineAggregationSpec addResultReader(String writeableName, Writeable.Reader<? extends InternalAggregation> resultReader)Add a reader for the shard level results of the aggregation. -
getAggregatorReader
Deprecated.Pipelines implemented after 7.8.0 do not need to be sent across the wireRead the aggregator from a stream. -
getResultReaders
Get the readers that must be registered for this aggregation's results.
-
PipelineAggregationSpec(String, Writeable.Reader, ContextParser)
for pipelines implemented after 7.8.0