Module: Pacer::Filter::WhereFilter
- Defined in:
- lib/pacer/filter/where_filter.rb,
lib/pacer/filter/where_filter/node_visitor.rb
Defined Under Namespace
Classes: NodeVisitor
Instance Attribute Summary collapse
-
#values ⇒ Object
Returns the value of attribute values.
-
#where_statement ⇒ Object
Returns the value of attribute where_statement.
Instance Method Summary collapse
Instance Attribute Details
#values ⇒ Object
Returns the value of attribute values.
32 33 34 |
# File 'lib/pacer/filter/where_filter.rb', line 32 def values @values end |
#where_statement ⇒ Object
Returns the value of attribute where_statement.
31 32 33 |
# File 'lib/pacer/filter/where_filter.rb', line 31 def where_statement @where_statement end |
Instance Method Details
#build! ⇒ Object
51 52 53 |
# File 'lib/pacer/filter/where_filter.rb', line 51 def build! intermediate.build end |
#intermediate ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/pacer/filter/where_filter.rb', line 43 def intermediate encoded_values = {} if values values.each { |k, v| encoded_values[k.to_sym] = graph.encode_property(v) } end @intermediate ||= parsed.accept(NodeVisitor.new(self, encoded_values)) end |
#parsed ⇒ Object
39 40 41 |
# File 'lib/pacer/filter/where_filter.rb', line 39 def parsed @parsed ||= JRuby.parse @where_statement end |