/// <summary> /// Column name -> Table alias /// </summary> //private Dictionary<string, string> _columnTableDict; public void Invoke(WSqlFragment node, Dictionary<string, List<string>> edgeTableReferenceDict/*, Dictionary<string, string> columnTableDcit*/) { _edgeTableReferenceDict = edgeTableReferenceDict; //_columnTableDict = columnTableDcit; node.Accept(this); }
public void Invoke(WSqlFragment fragment, IList<GraphDataModificationAnnotation> annotations) { _annotations = annotations; _nodeCount = 0; fragment.Accept(this); }
public WSqlTableContext Invoke(WSqlFragment node) { _results = new WSqlTableContext(); _nodeTables = null; node.Accept(this); return _results; }
public void Invoke(WSqlFragment fragment, IList <GraphDataModificationAnnotation> annotations) { _annotations = annotations; _nodeCount = 0; fragment.Accept(this); }
public Dictionary <string, HashSet <string> > Invoke(WSqlFragment sqlFragment, System.Collections.IEnumerable targetTableReferences, out bool isOnlyTargetTableReferecend) { _isOnlyTargetTableReferenced = true; accessedColumns = new Dictionary <string, HashSet <string> >(); if (sqlFragment != null) { foreach (string tabAlias in targetTableReferences) { accessedColumns.Add(tabAlias, new HashSet <string>()); } sqlFragment.Accept(this); foreach (string tableRef in targetTableReferences) { if (accessedColumns[tableRef].Count == 0) { accessedColumns.Remove(tableRef); } } } isOnlyTargetTableReferecend = _isOnlyTargetTableReferenced; return(accessedColumns); }
public WSqlTableContext Invoke(WSqlFragment node, IEnumerable <Tuple <string, string> > nodeTables) { _results = new WSqlTableContext(); _nodeTables = nodeTables; node.Accept(this); return(_results); }
public WSqlTableContext Invoke(WSqlFragment node) { _results = new WSqlTableContext(); _nodeTables = null; node.Accept(this); return(_results); }
public WSqlTableContext Invoke(WSqlFragment node, IEnumerable<Tuple<string, string>> nodeTables ) { _results = new WSqlTableContext(); _nodeTables = nodeTables; node.Accept(this); return _results; }
internal void UpdateTokenInfo(WSqlFragment fragment) { if (fragment == null) { return; } UpdateTokenInfo(fragment.FirstTokenIndex, fragment.LastTokenIndex); }
public bool Invoke(WSqlFragment sqlFragment) { hasModification = false; if (sqlFragment != null) { sqlFragment.Accept(this); } return(hasModification); }
public void Invoke( WSqlFragment node, out HashSet <string> tables, out HashSet <string> unboundColumns) { _tables = new HashSet <string>(StringComparer.OrdinalIgnoreCase); _unboundColumns = new HashSet <string>(StringComparer.OrdinalIgnoreCase); tables = _tables; unboundColumns = _unboundColumns; node.Accept(this); }
public void Invoke( WSqlFragment node, out HashSet<string> tables, out HashSet<string> unboundColumns) { _tables = new HashSet<string>(StringComparer.OrdinalIgnoreCase); _unboundColumns = new HashSet<string>(StringComparer.OrdinalIgnoreCase); tables = _tables; unboundColumns = _unboundColumns; node.Accept(this); }
public WCommonTableExpression Invoke(WSqlFragment node, string tempTableName, string sourceTableName, out WTableReference sinkTable, out List <WScalarExpression> edgeProperties) { _edgeProperties = new List <WScalarExpression>(); _tempTableName = tempTableName; _sourceTableName = sourceTableName; node.Accept(this); sinkTable = _sinkTable; _edgeProperties.Insert(0, new WColumnReferenceExpression { MultiPartIdentifier = new WMultiPartIdentifier(new Identifier { Value = "sink" }) } ); edgeProperties = _edgeProperties; return(_result); }
public void Invoke(WSqlFragment fragment) { fragment.Accept(this); }
public void Invoke(WSqlFragment queryBlock, Dictionary <GremlinVariableProperty, string> map) { _map = map; queryBlock.Accept(this); }
public WCommonTableExpression Invoke(WSqlFragment node, string tempTableName, out WTableReference sinkTable, out List<WScalarExpression> edgeProperties) { _edgeProperties = new List<WScalarExpression> { new WColumnReferenceExpression { MultiPartIdentifier = new WMultiPartIdentifier(new Identifier {Value = "sink"}) } }; _tempTableName = tempTableName; node.Accept(this); sinkTable = _sinkTable; edgeProperties = _edgeProperties; return _result; }
internal void UpdateTokenInfo(WSqlFragment fragment) { if (fragment == null) return; UpdateTokenInfo(fragment.FirstTokenIndex, fragment.LastTokenIndex); }
public void Invoke(WSqlFragment queryBlock, Dictionary <Tuple <string, string>, Tuple <string, string> > map) { this.Map = map; queryBlock.Accept(this); }
public void Invoke(WSqlFragment queryBlock, Dictionary <WColumnReferenceExpression, string> map) { this.map = map; queryBlock.Accept(this); }
public virtual void Visit(WSqlFragment fragment) { }
public void Invoke(WSqlFragment node, ref IList <ParseError> errors) { _errors = errors; node.Accept(this); }
public void Invoke(WSqlFragment node) { node.Accept(this); }
public void Invoke(WSqlFragment node, Dictionary<string, List<string>> edgeTableReferenceDict) { _edgeTableReferenceDict = edgeTableReferenceDict; node.Accept(this); }
public void Invoke(WSqlFragment node, ref IList<ParseError> errors) { _errors = errors; node.Accept(this); }