internal WMatchClause GetMatchClause() { var newMatchClause = new WMatchClause(); foreach (var path in PathList) { newMatchClause.Paths.Add(SqlUtil.GetMatchPath(path)); } return(newMatchClause.Paths.Count == 0 ? null : newMatchClause); }
public WMatchPath ToMatchPath() { if (!(SinkVariable is GremlinFreeVertexVariable)) { SinkVariable = null; } if (!(SourceVariable is GremlinFreeVertexVariable)) { SourceVariable = null; } return(SqlUtil.GetMatchPath(this)); }