They were originally commented out because the expression parsing utils weren't ready (now they are).
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace BCG
|
|
{
|
|
public class FullJoinStream : ViewStream
|
|
{
|
|
private ViewStream myMainStream;
|
|
public FullJoinStream(ViewStream v1, string joinCol1, string cmExp1,
|
|
ViewStream v2, string joinCol2, string cmExp2, string empty_col)
|
|
{
|
|
myMainStream = new LeftJoinStream(v1, joinCol1, cmExp1, v2, joinCol2, cmExp2);
|
|
ViewStream filtered = new LeftJoinStream(v2, joinCol2, cmExp2, v1, joinCol1, cmExp1);
|
|
filtered = new FilterStream(filtered, String.Format("{0}=null", empty_col));
|
|
myMainStream = new AppendStream(myMainStream, filtered);
|
|
}
|
|
|
|
protected override void myOnFirstSubscriber()
|
|
{
|
|
myMainStream.onChange += myHandleMainStreamChange;
|
|
}
|
|
|
|
private void myHandleMainStreamChange(object newData)
|
|
{
|
|
IBlueRowCollection result = (newData as DataPacket).newRows;
|
|
myFireEvent(new DataPacket(result, result, myLastValue == null ? new BlueTable(result.schema) : (myLastValue as DataPacket).newRows));
|
|
}
|
|
}
|
|
}
|