Class: Neo4j::Core::Cypher::NodeQuery
- Inherits:
-
Start
- Object
- Expression
- Start
- Neo4j::Core::Cypher::NodeQuery
- Defined in:
- lib/neo4j-core/cypher/cypher.rb
Instance Attribute Summary collapse
-
#index_name ⇒ Object
readonly
Returns the value of attribute index_name.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Attributes inherited from Start
Attributes included from Variable
Attributes inherited from Expression
#clause, #expressions, #separator
Instance Method Summary collapse
-
#initialize(index_class, query, index_type, expressions) ⇒ NodeQuery
constructor
A new instance of NodeQuery.
- #to_s ⇒ Object
Methods included from Matchable
#-, #<, #<<, #<=>, #>, #>>, #both, #incoming, #outgoing
Methods included from Variable
#[], #as, #distinct, #exist?, #is_a?, #neo_id, #property?
Methods inherited from Expression
#insert_last, #prefix, #prefixes, #valid?
Constructor Details
#initialize(index_class, query, index_type, expressions) ⇒ NodeQuery
Returns a new instance of NodeQuery.
344 345 346 347 348 |
# File 'lib/neo4j-core/cypher/cypher.rb', line 344 def initialize(index_class, query, index_type, expressions) super("n", expressions) @index_name = index_class.index_name_for_type(index_type) @query = query end |
Instance Attribute Details
#index_name ⇒ Object (readonly)
Returns the value of attribute index_name.
342 343 344 |
# File 'lib/neo4j-core/cypher/cypher.rb', line 342 def index_name @index_name end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
342 343 344 |
# File 'lib/neo4j-core/cypher/cypher.rb', line 342 def query @query end |
Instance Method Details
#to_s ⇒ Object
350 351 352 |
# File 'lib/neo4j-core/cypher/cypher.rb', line 350 def to_s "#{var_name}=node:#{index_name}(#{query})" end |