Example #1
0
 public OperatorEnqArgs(int threadId, Dataflow.Stage stage, int shardId, Pointstamp pointstamp)
 {
     this.ThreadId   = threadId;
     this.Stage      = stage;
     this.ShardId    = shardId;
     this.Pointstamp = pointstamp;
 }
Example #2
0
 public OperatorSendArgs(Dataflow.Stage stage, int shardId, int channelId, int count)
 {
     this.Stage     = stage;
     this.ShardId   = shardId;
     this.ChannelId = channelId;
     this.Count     = count;
 }
Example #3
0
 internal StageOutput(Stage stage, Dataflow.ITimeContext <T> context, Expression <Func <R, int> > partitionedBy)
 {
     this.ForStage      = stage;
     this.Context       = new TimeContext <T>(context);
     endpointMap        = new Dictionary <int, VertexOutput <R, T> >();
     this.partitionedBy = partitionedBy;
 }
Example #4
0
 public OperatorSendArgs(Dataflow.Stage stage, int vertexId, int channelId, int count)
 {
     this.Stage     = stage;
     this.VertexId  = vertexId;
     this.ChannelId = channelId;
     this.Count     = count;
 }
Example #5
0
 internal VertexEnqueuedArgs(int threadId, Dataflow.Stage stage, int vertexId, Pointstamp pointstamp)
 {
     this.ThreadId   = threadId;
     this.Stage      = stage;
     this.VertexId   = vertexId;
     this.Pointstamp = pointstamp;
 }
Example #6
0
        public int Register(Dataflow.Stage stage)
        {
            int ret = AllocateNewGraphIdentifier();

            this.stages.Add(ret, stage);
            return(ret);
        }
            public readonly bool  IsStage;   // true iff a stage node.

            public GraphNode(Dataflow.Stage stage)
            {
                this.Index = stage.StageId;
                this.Depth = stage.DefaultVersion.Timestamp.Length;

                this.Ingress = stage.IsIterationIngress;
                this.Egress  = stage.IsIterationEgress;
                this.Advance = stage.IsIterationAdvance;

                this.Neighbors = new int[stage.Targets.Count];
                for (int i = 0; i < Neighbors.Length; i++)
                {
                    Neighbors[i] = stage.Targets[i].ChannelId;
                }

                this.Exchanges = false;
                this.IsStage   = true;
            }