Class: Druid::RecFilter

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) ⇒ RecFilter

Returns a new instance of RecFilter.



288
289
290
291
292
293
294
295
296
297
# File 'lib/druid/filter.rb', line 288

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

Dynamic Method Handling

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