public void Add(string name, Bamboo.Query.Table table) { lock (this._lock) { this._tables[name] = table; } }
public static Bamboo.Query.Table Evaluate(object query, Bamboo.Query.Database database) { Bamboo.Query.Table T = new Bamboo.Query.Table(GetColumns(query)); Bamboo.Query.Planning.Node plan = Bamboo.Query.Planning.Planner.Plan(query, database); Bamboo.Query.Iterators.Iterator R = plan.CreateIterator(); R.Open(); System.Collections.IList r; while ((r = R.GetNext()) != null) { T.AddRow(r); } R.Close(); return(T); }
public TableScanNode(string tableName, Bamboo.Query.Table table) { if (table == null) { throw new System.Exception("Table is not defined: " + tableName); } this._table = table; ColumnCoordinate[] columnCoordinates = new ColumnCoordinate[this._table.Columns.Count]; for (int i = 0; i < columnCoordinates.Length; i++) { columnCoordinates[i] = new ColumnCoordinate(tableName + "." + ((Bamboo.Query.Column) this._table.Columns[i]).Name, i); } this._columnCoordinates = columnCoordinates; }
public TableScanIterator(Bamboo.Query.Table table) { this._table = table; }