Class: Elasticated::ValueCountAggregation

Inherits:
SingleValueAggregation show all
Defined in:
lib/elasticated/aggregations/value_count_aggregation.rb

Instance Attribute Summary

Attributes inherited from Aggregation

#alias_name, #extra_params, #field

Instance Method Summary collapse

Methods inherited from SingleValueAggregation

#build, #parse

Methods inherited from Aggregation

#initialize, #name, #original_name

Methods included from Mixins::Inspectionable

#inspect, #text_for_inspect

Methods included from Mixins::BlockEvaluation

#evaluate

Methods included from Mixins::Clonable

#==, #clone

Constructor Details

This class inherits a constructor from Elasticated::Aggregation

Instance Method Details

#default_nameObject

override



5
6
7
# File 'lib/elasticated/aggregations/value_count_aggregation.rb', line 5

def default_name
  "#{field}_value_count"
end

#operationObject

implementation



10
11
12
# File 'lib/elasticated/aggregations/value_count_aggregation.rb', line 10

def operation
  :value_count
end