Beispiel #1
0
 public OperatorNode WindowJoin(Type t, OperatorNode sourceB, int parallelism = 1, int outputStreamCount = 1, PartitionPolicy partitionPolicy = PartitionPolicy.RoundRobin)
 {
     if (!DataStreamValidator.ValidateType <IWindowJoin>(t))
     {
         new OperatorMismatchException("Operator is not of type IWindowJoin");
     }
     return(new OperatorNode(_mgr, this, t, parallelism, outputStreamCount, partitionPolicy, sourceB));
 }
Beispiel #2
0
 internal OperatorNode(TopologyManager mgr, OperatorNode previous, Type t, int parallelism, int outputStreamCount, PartitionPolicy partitionPolicy)
 {
     for (int i = 0; i < parallelism; i++)
     {
         OperatorGUIDs.Add(Guid.NewGuid());
     }
     Prev.Add(previous);
     OperatorType = t;
     StreamGUID   = Guid.NewGuid();
     Parallelism  = parallelism;
     SetPartitioner(partitionPolicy);
     OutputStreamCount = outputStreamCount;
     _mgr = mgr;
     mgr.Operators.Add(this);
 }
Beispiel #3
0
 public void AddInput(OperatorNode node)
 {
     Prev.Add(node);
 }