Search in sources :

Example 16 with MovAvgModel

use of org.elasticsearch.search.aggregations.pipeline.movavg.models.MovAvgModel in project elasticsearch by elastic.

the class SearchModule method registerMovingAverageModel.

private void registerMovingAverageModel(SearchExtensionSpec<MovAvgModel, MovAvgModel.AbstractModelParser> movAvgModel) {
    movingAverageModelParserRegistry.register(movAvgModel.getParser(), movAvgModel.getName());
    namedWriteables.add(new NamedWriteableRegistry.Entry(MovAvgModel.class, movAvgModel.getName().getPreferredName(), movAvgModel.getReader()));
}
Also used : NamedWriteableRegistry(org.elasticsearch.common.io.stream.NamedWriteableRegistry) MovAvgModel(org.elasticsearch.search.aggregations.pipeline.movavg.models.MovAvgModel) Entry(org.elasticsearch.common.io.stream.NamedWriteableRegistry.Entry)

Aggregations

MovAvgModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.MovAvgModel)16 EvictingQueue (org.elasticsearch.common.collect.EvictingQueue)12 HoltLinearModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.HoltLinearModel)4 HoltWintersModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.HoltWintersModel)4 EwmaModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.EwmaModel)2 LinearModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.LinearModel)2 SimpleModel (org.elasticsearch.search.aggregations.pipeline.movavg.models.SimpleModel)2 ParseException (java.text.ParseException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ParsingException (org.elasticsearch.common.ParsingException)1 NamedWriteableRegistry (org.elasticsearch.common.io.stream.NamedWriteableRegistry)1 Entry (org.elasticsearch.common.io.stream.NamedWriteableRegistry.Entry)1 NamedXContentRegistry (org.elasticsearch.common.xcontent.NamedXContentRegistry)1 XContentParser (org.elasticsearch.common.xcontent.XContentParser)1 SearchPlugin (org.elasticsearch.plugins.SearchPlugin)1 GapPolicy (org.elasticsearch.search.aggregations.pipeline.BucketHelpers.GapPolicy)1 DerivativePipelineAggregationBuilder (org.elasticsearch.search.aggregations.pipeline.derivative.DerivativePipelineAggregationBuilder)1 DerivativePipelineAggregator (org.elasticsearch.search.aggregations.pipeline.derivative.DerivativePipelineAggregator)1 FetchSubPhase (org.elasticsearch.search.fetch.FetchSubPhase)1