public final class RuntimeIdGenerator extends Object
Modifier and Type | Method and Description |
---|---|
static String |
generateBlockId(String runtimeEdgeId,
int taskIndex)
Generates the ID for a block, whose data is the output of a task.
|
static String |
generateExecutorId()
Generates the ID for executor.
|
static String |
generateLogicalTaskId(String irVertexId)
Generates the ID for
Task . |
static long |
generateMessageId()
Generates the ID for a control message.
|
static String |
generatePhysicalPlanId()
Generates the ID for
PhysicalPlan . |
static String |
generatePhysicalTaskId(int index,
String logicalTaskId)
Generates the ID for
Task . |
static String |
generateResourceSpecId()
Generates the ID for a resource specification.
|
static String |
generateRuntimeEdgeId(String irEdgeId)
Generates the ID for
RuntimeEdge . |
static String |
generateStageEdgeId(String irEdgeId)
Generates the ID for
StageEdge . |
static String |
generateStageId(Integer stageId)
Generates the ID for
Stage . |
static String |
generateTaskGroupId(int index,
String stageId)
Generates the ID for
ScheduledTaskGroup . |
static int |
getIndexFromTaskGroupId(String taskGroupId)
Extracts task group index from a task group ID.
|
static String |
getLogicalTaskIdIdFromPhysicalTaskId(String physicalTaskId)
Extracts logical task ID from a physical task ID.
|
static String |
getRuntimeEdgeIdFromBlockId(String blockId)
Extracts runtime edge ID from a block ID.
|
static String |
getStageIdFromTaskGroupId(String taskGroupId)
Extracts stage ID from a task group ID.
|
static String |
getTaskIndexFromBlockId(String blockId)
Extracts task index from a block ID.
|
public static String generatePhysicalPlanId()
PhysicalPlan
.public static String generateStageEdgeId(String irEdgeId)
StageEdge
.irEdgeId
- .public static String generateRuntimeEdgeId(String irEdgeId)
RuntimeEdge
.irEdgeId
- .public static String generateStageId(Integer stageId)
Stage
.stageId
- stage ID in numeric form.public static String generateLogicalTaskId(String irVertexId)
Task
.irVertexId
- the ID of the IR vertex.public static String generatePhysicalTaskId(int index, String logicalTaskId)
Task
.index
- the index of the physical task.logicalTaskId
- the logical ID of the task.public static String generateTaskGroupId(int index, String stageId)
ScheduledTaskGroup
.index
- the index of this task group.stageId
- the ID of the stage.public static String generateExecutorId()
public static String generateBlockId(String runtimeEdgeId, int taskIndex)
runtimeEdgeId
- of the blocktaskIndex
- of the blockpublic static long generateMessageId()
public static String generateResourceSpecId()
public static String getRuntimeEdgeIdFromBlockId(String blockId)
blockId
- the block ID to extract.public static String getTaskIndexFromBlockId(String blockId)
blockId
- the block ID to extract.public static String getStageIdFromTaskGroupId(String taskGroupId)
taskGroupId
- the task group ID to extract.public static int getIndexFromTaskGroupId(String taskGroupId)
taskGroupId
- the task group ID to extract.Copyright © 2018. All rights reserved.