Class: Druid::CircFilter

Inherits:
Filter
  • Object
show all
Includes:
BooleanOperators
Defined in:
lib/druid/filter.rb

Instance Attribute Summary

Attributes inherited from Filter

#dimension, #field, #fields, #function, #pattern, #type, #value

Instance Method Summary collapse

Methods included from BooleanOperators

#!, #&, #|

Methods inherited from Filter

#as_json, #method_missing

Constructor Details

#initialize(dimension, bounds) ⇒ CircFilter

Returns a new instance of CircFilter.



303
304
305
306
307
308
309
310
311
312
# File 'lib/druid/filter.rb', line 303

def initialize(dimension, bounds)
  super()
  @type = 'spatial'
  @dimension = dimension
  @bound = {
    type: 'radius',
    coords: bounds.first,
    radius: bounds.last
  }
end

Dynamic Method Handling

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