@Override protected Aggregator createUnmapped(Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, config, null, context, parent, pipelineAggregators, metaData); }
@Override public InternalAggregation buildAggregation(long bucket) { if (valuesSource == null || bucket >= maxes.size()) { return buildEmptyAggregation(); } return new InternalMax(name, maxes.get(bucket), formatter, pipelineAggregators(), metaData()); }
@Override public InternalAggregation buildEmptyAggregation() { return new InternalMax(name, Double.NEGATIVE_INFINITY, formatter, pipelineAggregators(), metaData()); }
@Override public InternalAggregation buildAggregation(long bucket) { if (valuesSource == null || bucket >= maxes.size()) { return buildEmptyAggregation(); } return new InternalMax(name, maxes.get(bucket), formatter, pipelineAggregators(), metaData()); }
Number segMax = findLeafMaxValue(ctx.reader(), pointField, pointConverter); if (segMax != null) {
@Override public InternalAggregation buildEmptyAggregation() { return new InternalMax(name, Double.NEGATIVE_INFINITY, formatter, pipelineAggregators(), metaData()); }
Number segMax = findLeafMaxValue(ctx.reader(), pointField, pointConverter); if (segMax != null) {
@Override public InternalAggregation buildAggregation(long bucket) { if (valuesSource == null || bucket >= maxes.size()) { return buildEmptyAggregation(); } return new InternalMax(name, maxes.get(bucket), formatter, pipelineAggregators(), metaData()); }
@Override public InternalAggregation buildEmptyAggregation() { return new InternalMax(name, Double.NEGATIVE_INFINITY, formatter, pipelineAggregators(), metaData()); }
@Override protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, config, valuesSource, context, parent, pipelineAggregators, metaData); } }
@Override public InternalAggregation buildAggregation(long bucket) { if (valuesSource == null || bucket >= maxes.size()) { return buildEmptyAggregation(); } return new InternalMax(name, maxes.get(bucket), formatter, pipelineAggregators(), metaData()); }
@Override public InternalAggregation buildEmptyAggregation() { return new InternalMax(name, Double.NEGATIVE_INFINITY, formatter, pipelineAggregators(), metaData()); }
@Override protected Aggregator createUnmapped(Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, null, config.format(), context, parent, pipelineAggregators, metaData); }
@Override public InternalAggregation buildAggregation(long bucket) { if (valuesSource == null || bucket >= maxes.size()) { return buildEmptyAggregation(); } return new InternalMax(name, maxes.get(bucket), formatter, pipelineAggregators(), metaData()); }
@Override protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, config, valuesSource, context, parent, pipelineAggregators, metaData); } }
@Override protected Aggregator createUnmapped(Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, config, null, context, parent, pipelineAggregators, metaData); }
@Override protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, valuesSource, config.format(), context, parent, pipelineAggregators, metaData); } }
@Override protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, null, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); }
@Override protected Aggregator doCreateInternal(ValuesSource.Numeric valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, valuesSource, config.formatter(), aggregationContext, parent, pipelineAggregators, metaData); } }
@Override protected Aggregator createUnmapped(Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String, Object> metaData) throws IOException { return new MaxAggregator(name, null, config.format(), context, parent, pipelineAggregators, metaData); }