Module: Neo4j::Cypher::MatchStart::JoinableMatchContext

Included in:
NodeMatchContext, RelRightMatchContext
Defined in:
lib/neo4j-cypher/match.rb

Instance Method Summary collapse

Instance Method Details

#-(rel) ⇒ Object



164
165
166
# File 'lib/neo4j-cypher/match.rb', line 164

def -(rel)
  next_new_rel(rel)
end

#<(rel) ⇒ Object



156
157
158
# File 'lib/neo4j-cypher/match.rb', line 156

def <(rel)
  next_new_rel(rel)
end

#<<(other) ⇒ Object



152
153
154
# File 'lib/neo4j-cypher/match.rb', line 152

def <<(other)
  next_new_node(other, :incoming)
end

#<=>(other) ⇒ Object



144
145
146
# File 'lib/neo4j-cypher/match.rb', line 144

def <=>(other)
  next_new_node(other, :both)
end

#>(rel) ⇒ Object



160
161
162
# File 'lib/neo4j-cypher/match.rb', line 160

def >(rel)
  next_new_rel(rel)
end

#>>(other) ⇒ Object



148
149
150
# File 'lib/neo4j-cypher/match.rb', line 148

def >>(other)
  next_new_node(other, :outgoing)
end

#next_new_node(to, dir) ⇒ Object



135
136
137
138
# File 'lib/neo4j-cypher/match.rb', line 135

def next_new_node(to, dir)
  to_var = NodeVar.as_var(@match_start.clause_list, to)
  NodeMatchContext.new(@match_start, self, to_var, dir).join_previous!
end

#next_new_rel(rel) ⇒ Object



140
141
142
# File 'lib/neo4j-cypher/match.rb', line 140

def next_new_rel(rel)
  RelLeftMatchContext.new(@match_start, self).set_rel(rel).join_previous!
end