public final class PhysicalPlanUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
extractTopologyTimeout(TopologyAPI.Topology topology)
Extract the config value "topology.message.timeout.secs" for given topology protobuf
|
static java.util.Map<java.lang.String,java.lang.Integer> |
getComponentParallelism(TopologyAPI.Topology topology) |
static java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> |
getComponentToTaskIds(PhysicalPlans.PhysicalPlan physicalPlan)
Get the map <componentId -> taskIds> from the Physical Plan given
|
static java.lang.String |
getConfigWithException(java.util.List<TopologyAPI.Config.KeyValue> config,
java.lang.String key) |
static PhysicalPlans.PhysicalPlan |
getPhysicalPlan(TopologyAPI.Topology topology)
Want get a PhysicalPlan basing the topology given.
|
public static PhysicalPlans.PhysicalPlan getPhysicalPlan(TopologyAPI.Topology topology)
topology
- The topology protobuf givenpublic static java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> getComponentToTaskIds(PhysicalPlans.PhysicalPlan physicalPlan)
physicalPlan
- the given Physical Planpublic static int extractTopologyTimeout(TopologyAPI.Topology topology)
topology
- The given topology protobufpublic static java.util.Map<java.lang.String,java.lang.Integer> getComponentParallelism(TopologyAPI.Topology topology)
public static java.lang.String getConfigWithException(java.util.List<TopologyAPI.Config.KeyValue> config, java.lang.String key)