using System; using BCG.Utilities; using bts; namespace BCG { internal class JoinForeignTable : JoinTable { public JoinForeignTable (JoinTableSchema schema) : base (schema) {} public override void addRow (IBlueRow leftRow, IBlueRow rightRow, DataPacket dp) { JoinRow newRow = new JoinRow (leftRow, rightRow, mySchema); Log.assert(myIdIndex[leftRow["id"]] == null); myIdIndex[leftRow["id"]] = newRow; ((BlueTable)(dp.addedRows)).addRow (newRow); myLeftIndex.add (newRow); myRightIndex.add (newRow); } } }