-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEZ-4227 Introduce convenient methods in TezID subclasses
Change-Id: I6cabfa75e9b6b62e41ba8c2cc5e3d2d1a8a49102
- Loading branch information
Showing
83 changed files
with
741 additions
and
684 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tez-common/src/main/java/org/apache/tez/dag/records/DAGIDHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.apache.tez.dag.records; | ||
|
||
import org.apache.hadoop.yarn.api.records.ApplicationId; | ||
|
||
public interface DAGIDHolder { | ||
TezDAGID getDAGId(); | ||
|
||
default ApplicationId getApplicationId() { | ||
return getDAGId().getApplicationId(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tez-common/src/main/java/org/apache/tez/dag/records/TaskAttemptIDHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.apache.tez.dag.records; | ||
|
||
public interface TaskAttemptIDHolder extends TaskIDHolder { | ||
TezTaskAttemptID getTaskAttemptID(); | ||
|
||
@Override | ||
default TezTaskID getTaskID() { | ||
return getTaskAttemptID().getTaskID(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
tez-common/src/main/java/org/apache/tez/dag/records/TaskIDHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.apache.tez.dag.records; | ||
|
||
public interface TaskIDHolder extends VertexIDHolder { | ||
TezTaskID getTaskID(); | ||
|
||
@Override | ||
default TezVertexID getVertexID() { | ||
return getTaskID().getVertexID(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tez-common/src/main/java/org/apache/tez/dag/records/VertexIDHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.apache.tez.dag.records; | ||
|
||
public interface VertexIDHolder extends DAGIDHolder { | ||
TezVertexID getVertexID(); | ||
|
||
@Override | ||
default TezDAGID getDAGId() { | ||
return getVertexID().getDAGId(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.