Class: Druid::Aggregation

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/druid/aggregation.rb

Defined Under Namespace

Classes: AggregatorValidator, FieldnameValidator, FieldnamesValidator, FilterValidator, FnValidator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aggregatorObject

Returns the value of attribute aggregator.



87
88
89
# File 'lib/druid/aggregation.rb', line 87

def aggregator
  @aggregator
end

#byRowObject

Returns the value of attribute byRow.



59
60
61
# File 'lib/druid/aggregation.rb', line 59

def byRow
  @byRow
end

#fieldNameObject

Returns the value of attribute fieldName.



22
23
24
# File 'lib/druid/aggregation.rb', line 22

def fieldName
  @fieldName
end

#fieldNamesObject

Returns the value of attribute fieldNames.



36
37
38
# File 'lib/druid/aggregation.rb', line 36

def fieldNames
  @fieldNames
end

#filterObject

Returns the value of attribute filter.



73
74
75
# File 'lib/druid/aggregation.rb', line 73

def filter
  @filter
end

#fnAggregateObject

Returns the value of attribute fnAggregate.



50
51
52
# File 'lib/druid/aggregation.rb', line 50

def fnAggregate
  @fnAggregate
end

#fnCombineObject

Returns the value of attribute fnCombine.



53
54
55
# File 'lib/druid/aggregation.rb', line 53

def fnCombine
  @fnCombine
end

#fnResetObject

Returns the value of attribute fnReset.



56
57
58
# File 'lib/druid/aggregation.rb', line 56

def fnReset
  @fnReset
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/druid/aggregation.rb', line 8

def name
  @name
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/druid/aggregation.rb', line 5

def type
  @type
end

Instance Method Details

#as_json(options = {}) ⇒ Object



90
91
92
# File 'lib/druid/aggregation.rb', line 90

def as_json(options = {})
  super(options.merge(except: %w(errors validation_context)))
end