Class: Aggregations::Metrics::MaxAggregationBuilder
- Inherits:
-
Object
- Object
- Aggregations::Metrics::MaxAggregationBuilder
- Includes:
- Helpers::AbstractAggregationHelper, Helpers::AggregationQueryBuilderHelper, Helpers::ValuesSourceAggregationHelper, AttributesReader
- Defined in:
- lib/aggregations/metrics/max_aggregation_builder.rb
Overview
Elasticsearch Max Aggregation
Constant Summary
Constants included from Helpers::AggregationQueryBuilderHelper
Helpers::AggregationQueryBuilderHelper::OBJECT_ARRAY_QUERY_FIELDS, Helpers::AggregationQueryBuilderHelper::OBJECT_ARRAY_SETTINGS_FIELDS
Instance Method Summary collapse
-
#initialize(name:) ⇒ MaxAggregationBuilder
constructor
A new instance of MaxAggregationBuilder.
Methods included from AttributesReader
Methods included from Helpers::AggregationQueryBuilderHelper
#name_expr, #query, #type_expr
Methods included from Helpers::AbstractAggregationHelper
#abstract_agg_builder, #sub_aggregation, #sub_aggregation_expr
Methods included from Helpers::ValuesSourceAggregationHelper
#field, #field_expr, #missing, #missing_expr, #script, #script_expr, #value_source_agg_builder
Constructor Details
#initialize(name:) ⇒ MaxAggregationBuilder
Returns a new instance of MaxAggregationBuilder.
12 13 14 15 16 17 18 19 20 |
# File 'lib/aggregations/metrics/max_aggregation_builder.rb', line 12 def initialize name: @name = name.intern @type = :max @query = { @name => { @type => {} } } end |