class Neo4j::Cypher::MatchStart::RelRightMatchContext
Constants
- FIRST_DIR_OP
- SECOND_DIR_OP
Public Class Methods
new(match_start, from, rel_var, to, dir)
click to toggle source
Calls superclass method
Neo4j::Cypher::MatchStart::MatchContext::new
# File lib/neo4j-cypher/match.rb 255 def initialize(match_start, from, rel_var, to, dir) 256 super(match_start) 257 @from = from 258 convert_create_clauses(from) 259 convert_create_clauses(to) 260 join_previous! if @from.kind_of?(MatchContext) && @from.join_previous? 261 @rel_var = rel_var 262 @dir = dir 263 convert_create_clauses(to) 264 @to = NodeVar.as_var(match_start.clause_list, to) 265 end
Public Instance Methods
to_cypher_join()
click to toggle source
# File lib/neo4j-cypher/match.rb 271 def to_cypher_join 272 "#{FIRST_DIR_OP[@dir]}[#{@rel_var.match_value}]#{SECOND_DIR_OP[@dir]}(#{@to.match_value})" 273 end
to_cypher_no_join()
click to toggle source
# File lib/neo4j-cypher/match.rb 267 def to_cypher_no_join 268 "(#{@from.match_value})#{FIRST_DIR_OP[@dir]}[#{@rel_var.match_value}]#{SECOND_DIR_OP[@dir]}(#{@to.match_value})" 269 end