class Druid::PostAggregation

Attributes

fieldName[RW]
fieldNames[R]
fields[RW]
fn[RW]
function[RW]
name[RW]
numBuckets[RW]
type[RW]
value[RW]

Public Instance Methods

fields=(value) click to toggle source
# File lib/druid/post_aggregation.rb, line 55
def fields=(value)
  @fields = [value].flatten.compact.map do |aggregation|
    PostAggregation.new(aggregation)
  end
end
js(*args) click to toggle source
# File lib/druid/post_aggregation.rb, line 111
def js(*args)
  if args.empty?
    PostAggregationField.new(fieldName: :js)
  else
    PostAggregationJavascript.new(args.first)
  end
end
method_missing(name, *args) click to toggle source
# File lib/druid/post_aggregation.rb, line 105
def method_missing(name, *args)
  if args.empty?
    PostAggregationField.new(fieldName: name)
  end
end