From 02b1c32261922f266d714e0cf24f193b310b6967 Mon Sep 17 00:00:00 2001 From: Paulo Martins Date: Tue, 8 Dec 2015 17:44:52 +0000 Subject: [PATCH] Correct typo in class name of StatsAggregator #15264 (Closes) --- .../{StatsAggegator.java => StatsAggregator.java} | 14 +++++++------- .../aggregations/metrics/stats/StatsParser.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) rename core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/{StatsAggegator.java => StatsAggregator.java} (91%) diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggegator.java b/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregator.java similarity index 91% rename from core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggegator.java rename to core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregator.java index 5cc7ddb5dda..6e648cb50e2 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggegator.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsAggregator.java @@ -43,7 +43,7 @@ import java.util.Map; /** * */ -public class StatsAggegator extends NumericMetricsAggregator.MultiValue { +public class StatsAggregator extends NumericMetricsAggregator.MultiValue { final ValuesSource.Numeric valuesSource; final ValueFormatter formatter; @@ -54,10 +54,10 @@ public class StatsAggegator extends NumericMetricsAggregator.MultiValue { DoubleArray maxes; - public StatsAggegator(String name, ValuesSource.Numeric valuesSource, ValueFormatter formatter, - AggregationContext context, - Aggregator parent, List pipelineAggregators, - Map metaData) throws IOException { + public StatsAggregator(String name, ValuesSource.Numeric valuesSource, ValueFormatter formatter, + AggregationContext context, + Aggregator parent, List pipelineAggregators, + Map metaData) throws IOException { super(name, context, parent, pipelineAggregators, metaData); this.valuesSource = valuesSource; if (valuesSource != null) { @@ -164,14 +164,14 @@ public class StatsAggegator extends NumericMetricsAggregator.MultiValue { @Override protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List pipelineAggregators, Map metaData) throws IOException { - return new StatsAggegator(name, null, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); + return new StatsAggregator(name, null, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); } @Override protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List pipelineAggregators, Map metaData) throws IOException { - return new StatsAggegator(name, valuesSource, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); + return new StatsAggregator(name, valuesSource, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); } } diff --git a/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsParser.java b/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsParser.java index 5ec9b2a59a7..86c85e40ce5 100644 --- a/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsParser.java +++ b/core/src/main/java/org/elasticsearch/search/aggregations/metrics/stats/StatsParser.java @@ -34,6 +34,6 @@ public class StatsParser extends NumericValuesSourceMetricsAggregatorParser config) { - return new StatsAggegator.Factory(aggregationName, config); + return new StatsAggregator.Factory(aggregationName, config); } }