You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by se...@apache.org on 2014/09/21 04:12:38 UTC

[14/63] [abbrv] Refactor job graph construction to incremental attachment based

http://git-wip-us.apache.org/repos/asf/incubator-flink/blob/b32e77a2/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionEdge2.java
----------------------------------------------------------------------
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionEdge2.java b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionEdge2.java
new file mode 100644
index 0000000..a7cbeaf
--- /dev/null
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/ExecutionEdge2.java
@@ -0,0 +1,74 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.runtime.executiongraph;
+
+import org.apache.flink.runtime.io.network.channels.ChannelID;
+
+public class ExecutionEdge2 {
+
+	private final IntermediateResultPartition source;
+	
+	private final ExecutionVertex2 target;
+	
+	private final int inputNum;
+
+	private final ChannelID inputChannelId;
+	
+	private final ChannelID outputChannelId;
+	
+	
+	public ExecutionEdge2(IntermediateResultPartition source, ExecutionVertex2 target, int inputNum) {
+		this.source = source;
+		this.target = target;
+		this.inputNum = inputNum;
+		
+		this.inputChannelId = new ChannelID();
+		this.outputChannelId = new ChannelID();
+	}
+	
+	public ExecutionEdge2(IntermediateResultPartition source, ExecutionVertex2 target, int inputNum, ChannelID inputChannelId, ChannelID outputChannelId) {
+		this.source = source;
+		this.target = target;
+		this.inputNum = inputNum;
+		
+		this.inputChannelId = inputChannelId;
+		this.outputChannelId = outputChannelId;
+	}
+	
+	
+	public IntermediateResultPartition getSource() {
+		return source;
+	}
+	
+	public ExecutionVertex2 getTarget() {
+		return target;
+	}
+	
+	public int getInputNum() {
+		return inputNum;
+	}
+	
+	public ChannelID getInputChannelId() {
+		return inputChannelId;
+	}
+	
+	public ChannelID getOutputChannelId() {
+		return outputChannelId;
+	}
+}