Skip to content

Commit

Permalink
[hotfix][datastream] Fix the formatting of StreamEdge class
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijiangW committed Sep 7, 2020
1 parent 82f6f86 commit 1f2d26f
Showing 1 changed file with 26 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,33 @@ public class StreamEdge implements Serializable {

private final ShuffleMode shuffleMode;

public StreamEdge(StreamNode sourceVertex, StreamNode targetVertex, int typeNumber,
List<String> selectedNames, StreamPartitioner<?> outputPartitioner, OutputTag outputTag) {
this(sourceVertex,
targetVertex,
typeNumber,
selectedNames,
outputPartitioner,
outputTag,
ShuffleMode.UNDEFINED);
public StreamEdge(
StreamNode sourceVertex,
StreamNode targetVertex,
int typeNumber,
List<String> selectedNames,
StreamPartitioner<?> outputPartitioner,
OutputTag outputTag) {

this(
sourceVertex,
targetVertex,
typeNumber,
selectedNames,
outputPartitioner,
outputTag,
ShuffleMode.UNDEFINED);
}

public StreamEdge(StreamNode sourceVertex, StreamNode targetVertex, int typeNumber,
List<String> selectedNames, StreamPartitioner<?> outputPartitioner, OutputTag outputTag,
ShuffleMode shuffleMode) {
public StreamEdge(
StreamNode sourceVertex,
StreamNode targetVertex,
int typeNumber,
List<String> selectedNames,
StreamPartitioner<?> outputPartitioner,
OutputTag outputTag,
ShuffleMode shuffleMode) {

this.sourceId = sourceVertex.getId();
this.targetId = targetVertex.getId();
this.typeNumber = typeNumber;
Expand All @@ -99,9 +112,7 @@ public StreamEdge(StreamNode sourceVertex, StreamNode targetVertex, int typeNumb
this.sourceOperatorName = sourceVertex.getOperatorName();
this.targetOperatorName = targetVertex.getOperatorName();
this.shuffleMode = checkNotNull(shuffleMode);

this.edgeId = sourceVertex + "_" + targetVertex + "_" + typeNumber + "_" + selectedNames
+ "_" + outputPartitioner;
this.edgeId = sourceVertex + "_" + targetVertex + "_" + typeNumber + "_" + selectedNames + "_" + outputPartitioner;
}

public int getSourceId() {
Expand Down

0 comments on commit 1f2d26f

Please sign in to comment.