@@ -366,9 +366,9 @@ public void parse(DocumentParserContext context) throws IOException {
366366 );
367367 }
368368
369- sum = checkAndPossiblyEstimateSum (sum , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
370- min = checkAndPossiblyEstimateMin (min , zeroBucket , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
371- max = checkAndPossiblyEstimateMax (max , zeroBucket , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
369+ sum = validateOrEstimateSum (sum , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
370+ min = validateOrEstimateMin (min , zeroBucket , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
371+ max = validateOrEstimateMax (max , zeroBucket , scale , negativeBuckets , positiveBuckets , totalValueCount , subParser );
372372
373373 BytesStreamOutput histogramBytesOutput = new BytesStreamOutput ();
374374 CompressedExponentialHistogram .writeHistogramBytes (histogramBytesOutput , scale , negativeBuckets , positiveBuckets );
@@ -430,7 +430,7 @@ public void parse(DocumentParserContext context) throws IOException {
430430 context .path ().remove ();
431431 }
432432
433- private Double checkAndPossiblyEstimateSum (
433+ private Double validateOrEstimateSum (
434434 Double sum ,
435435 Integer scale ,
436436 List <IndexWithCount > negativeBuckets ,
@@ -454,7 +454,7 @@ private Double checkAndPossiblyEstimateSum(
454454 }
455455 }
456456
457- private Double checkAndPossiblyEstimateMin (
457+ private Double validateOrEstimateMin (
458458 Double parsedMin ,
459459 ParsedZeroBucket zeroBucket ,
460460 Integer scale ,
@@ -481,7 +481,7 @@ private Double checkAndPossiblyEstimateMin(
481481 }
482482 }
483483
484- private Double checkAndPossiblyEstimateMax (
484+ private Double validateOrEstimateMax (
485485 Double parsedMax ,
486486 ParsedZeroBucket zeroBucket ,
487487 Integer scale ,
@@ -747,8 +747,8 @@ public SourceLoader.SyntheticFieldLoader.DocValuesLoader docValuesLoader(LeafRea
747747 NumericDocValues zeroThresholds = leafReader .getNumericDocValues (zeroThresholdSubFieldName (fullPath ()));
748748 NumericDocValues valueCounts = leafReader .getNumericDocValues (valuesCountSubFieldName (fullPath ()));
749749 NumericDocValues valueSums = leafReader .getNumericDocValues (valuesSumSubFieldName (fullPath ()));
750- NumericDocValues valueMins = leafReader .getNumericDocValues (valuesMinSubFieldName (fullPath ()));
751- NumericDocValues valueMaxs = leafReader .getNumericDocValues (valuesMaxSubFieldName (fullPath ()));
750+ NumericDocValues valueMinima = leafReader .getNumericDocValues (valuesMinSubFieldName (fullPath ()));
751+ NumericDocValues valueMaxima = leafReader .getNumericDocValues (valuesMaxSubFieldName (fullPath ()));
752752 assert zeroThresholds != null ;
753753 assert valueCounts != null ;
754754 assert valueSums != null ;
@@ -765,13 +765,13 @@ public SourceLoader.SyntheticFieldLoader.DocValuesLoader docValuesLoader(LeafRea
765765 valueCount = valueCounts .longValue ();
766766 valueSum = NumericUtils .sortableLongToDouble (valueSums .longValue ());
767767
768- if (valueMins != null && valueMins .advanceExact (docId )) {
769- valueMin = NumericUtils .sortableLongToDouble (valueMins .longValue ());
768+ if (valueMinima != null && valueMinima .advanceExact (docId )) {
769+ valueMin = NumericUtils .sortableLongToDouble (valueMinima .longValue ());
770770 } else {
771771 valueMin = Double .NaN ;
772772 }
773- if (valueMaxs != null && valueMaxs .advanceExact (docId )) {
774- valueMax = NumericUtils .sortableLongToDouble (valueMaxs .longValue ());
773+ if (valueMaxima != null && valueMaxima .advanceExact (docId )) {
774+ valueMax = NumericUtils .sortableLongToDouble (valueMaxima .longValue ());
775775 } else {
776776 valueMax = Double .NaN ;
777777 }
0 commit comments