Class: Druid::PostAggregationField

Inherits:
PostAggregation show all
Includes:
PostAggregationOperators
Defined in:
lib/druid/post_aggregation.rb

Instance Attribute Summary

Attributes inherited from PostAggregation

#fieldName, #fieldNames, #fields, #fn, #function, #name, #numBuckets, #type, #value

Instance Method Summary collapse

Methods included from PostAggregationOperators

#*, #+, #-, #/

Methods inherited from PostAggregation

#js, #method_missing

Constructor Details

#initialize(attributes = {}) ⇒ PostAggregationField

Returns a new instance of PostAggregationField.



164
165
166
167
# File 'lib/druid/post_aggregation.rb', line 164

def initialize(attributes = {})
  super
  @type = 'fieldAccess'
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Druid::PostAggregation

Instance Method Details

#field_namesObject



169
170
171
# File 'lib/druid/post_aggregation.rb', line 169

def field_names
  [@fieldName]
end