org.apache.tez.dag.api
Class DagTypeConverters

java.lang.Object
  extended by org.apache.tez.dag.api.DagTypeConverters

public class DagTypeConverters
extends Object


Constructor Summary
DagTypeConverters()
           
 
Method Summary
static org.apache.hadoop.security.Credentials convertByteStringToCredentials(com.google.protobuf.ByteString byteString)
           
static Map<String,String> convertConfFromProto(DAGProtos.ConfigurationProto confProto)
           
static com.google.protobuf.ByteString convertCredentialsToProto(org.apache.hadoop.security.Credentials credentials)
           
static EdgeManagerDescriptor convertEdgeManagerDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)
           
static EdgeProperty.DataMovementType convertFromDAGPlan(DAGProtos.PlanEdgeDataMovementType type)
           
static EdgeProperty.DataSourceType convertFromDAGPlan(DAGProtos.PlanEdgeDataSourceType sourceType)
           
static EdgeProperty.SchedulingType convertFromDAGPlan(DAGProtos.PlanEdgeSchedulingType type)
           
static org.apache.hadoop.yarn.api.records.LocalResourceType convertFromDAGPlan(DAGProtos.PlanLocalResourceType type)
           
static org.apache.hadoop.yarn.api.records.LocalResourceVisibility convertFromDAGPlan(DAGProtos.PlanLocalResourceVisibility visibility)
           
static VertexLocationHint convertFromDAGPlan(List<DAGProtos.PlanTaskLocationHint> locationHints)
           
static DAGProtos.PlanLocalResourcesProto convertFromLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)
           
static Map<String,org.apache.hadoop.yarn.api.records.LocalResource> convertFromPlanLocalResources(DAGProtos.PlanLocalResourcesProto proto)
           
static InputDescriptor convertInputDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)
           
static DAGProtos.PlanLocalResource convertLocalResourceToPlanLocalResource(String name, org.apache.hadoop.yarn.api.records.LocalResource lr)
           
static OutputDescriptor convertOutputDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)
           
static org.apache.hadoop.yarn.api.records.LocalResource convertPlanLocalResourceToLocalResource(DAGProtos.PlanLocalResource plr)
           
static PreWarmContext convertPreWarmContextFromProto(DAGProtos.PreWarmContextProto proto)
           
static DAGProtos.PreWarmContextProto convertPreWarmContextToProto(PreWarmContext preWarmContext)
           
static ProcessorDescriptor convertProcessorDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)
           
static StatusGetOpts convertStatusGetOptsFromProto(DAGProtos.StatusGetOptsProto proto)
           
static Set<StatusGetOpts> convertStatusGetOptsFromProto(List<DAGProtos.StatusGetOptsProto> protoList)
           
static List<DAGProtos.StatusGetOptsProto> convertStatusGetOptsToProto(Set<StatusGetOpts> statusGetOpts)
           
static DAGProtos.StatusGetOptsProto convertStatusGetOptsToProto(StatusGetOpts statusGetOpts)
           
static TezCounters convertTezCountersFromProto(DAGProtos.TezCountersProto proto)
           
static DAGProtos.TezCountersProto convertTezCountersToProto(TezCounters counters)
           
static TezSessionStatus convertTezSessionStatusFromProto(DAGClientAMProtocolRPC.TezSessionStatusProto proto)
           
static DAGClientAMProtocolRPC.TezSessionStatusProto convertTezSessionStatusToProto(TezSessionStatus status)
           
static DAGProtos.PlanEdgeDataMovementType convertToDAGPlan(EdgeProperty.DataMovementType type)
           
static DAGProtos.PlanEdgeDataSourceType convertToDAGPlan(EdgeProperty.DataSourceType sourceType)
           
static DAGProtos.PlanEdgeSchedulingType convertToDAGPlan(EdgeProperty.SchedulingType type)
           
static DAGProtos.PlanLocalResourceType convertToDAGPlan(org.apache.hadoop.yarn.api.records.LocalResourceType type)
           
static DAGProtos.PlanLocalResourceVisibility convertToDAGPlan(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)
           
static DAGProtos.RootInputLeafOutputProto convertToDAGPlan(org.apache.tez.dag.api.RootInputLeafOutput<? extends TezEntityDescriptor> descriptor)
           
static DAGProtos.TezEntityDescriptorProto convertToDAGPlan(TezEntityDescriptor descriptor)
           
static String convertToDAGPlan(org.apache.hadoop.yarn.api.records.URL resource)
           
static VertexLocationHint convertVertexLocationHintFromProto(DAGProtos.VertexLocationHintProto proto)
           
static DAGProtos.VertexLocationHintProto convertVertexLocationHintToProto(VertexLocationHint vertexLocationHint)
           
static VertexManagerPluginDescriptor convertVertexManagerPluginDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)
           
static Map<String,DAGProtos.EdgePlan> createEdgePlanMapFromDAGPlan(List<DAGProtos.EdgePlan> edgeList)
           
static EdgeProperty createEdgePropertyMapFromDAGPlan(DAGProtos.EdgePlan edge)
           
static Map<String,String> createEnvironmentMapFromDAGPlan(List<DAGProtos.PlanKeyValuePair> environmentSettingList)
           
static Map<String,org.apache.hadoop.yarn.api.records.LocalResource> createLocalResourceMapFromDAGPlan(List<DAGProtos.PlanLocalResource> localResourcesList)
           
static org.apache.hadoop.yarn.api.records.Resource createResourceRequestFromTaskConfig(DAGProtos.PlanTaskConfiguration taskConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DagTypeConverters

public DagTypeConverters()
Method Detail

convertToDAGPlan

public static DAGProtos.PlanLocalResourceVisibility convertToDAGPlan(org.apache.hadoop.yarn.api.records.LocalResourceVisibility visibility)

convertFromDAGPlan

public static org.apache.hadoop.yarn.api.records.LocalResourceVisibility convertFromDAGPlan(DAGProtos.PlanLocalResourceVisibility visibility)

convertToDAGPlan

public static DAGProtos.PlanEdgeDataSourceType convertToDAGPlan(EdgeProperty.DataSourceType sourceType)

convertFromDAGPlan

public static EdgeProperty.DataSourceType convertFromDAGPlan(DAGProtos.PlanEdgeDataSourceType sourceType)

convertToDAGPlan

public static DAGProtos.PlanEdgeDataMovementType convertToDAGPlan(EdgeProperty.DataMovementType type)

convertFromDAGPlan

public static EdgeProperty.DataMovementType convertFromDAGPlan(DAGProtos.PlanEdgeDataMovementType type)

convertToDAGPlan

public static DAGProtos.PlanEdgeSchedulingType convertToDAGPlan(EdgeProperty.SchedulingType type)

convertFromDAGPlan

public static EdgeProperty.SchedulingType convertFromDAGPlan(DAGProtos.PlanEdgeSchedulingType type)

convertToDAGPlan

public static DAGProtos.PlanLocalResourceType convertToDAGPlan(org.apache.hadoop.yarn.api.records.LocalResourceType type)

convertFromDAGPlan

public static org.apache.hadoop.yarn.api.records.LocalResourceType convertFromDAGPlan(DAGProtos.PlanLocalResourceType type)

convertFromDAGPlan

public static VertexLocationHint convertFromDAGPlan(List<DAGProtos.PlanTaskLocationHint> locationHints)

convertToDAGPlan

public static String convertToDAGPlan(org.apache.hadoop.yarn.api.records.URL resource)

createLocalResourceMapFromDAGPlan

public static Map<String,org.apache.hadoop.yarn.api.records.LocalResource> createLocalResourceMapFromDAGPlan(List<DAGProtos.PlanLocalResource> localResourcesList)

createEnvironmentMapFromDAGPlan

public static Map<String,String> createEnvironmentMapFromDAGPlan(List<DAGProtos.PlanKeyValuePair> environmentSettingList)

createEdgePlanMapFromDAGPlan

public static Map<String,DAGProtos.EdgePlan> createEdgePlanMapFromDAGPlan(List<DAGProtos.EdgePlan> edgeList)

createEdgePropertyMapFromDAGPlan

public static EdgeProperty createEdgePropertyMapFromDAGPlan(DAGProtos.EdgePlan edge)

createResourceRequestFromTaskConfig

public static org.apache.hadoop.yarn.api.records.Resource createResourceRequestFromTaskConfig(DAGProtos.PlanTaskConfiguration taskConfig)

convertConfFromProto

public static Map<String,String> convertConfFromProto(DAGProtos.ConfigurationProto confProto)

convertToDAGPlan

public static DAGProtos.TezEntityDescriptorProto convertToDAGPlan(TezEntityDescriptor descriptor)

convertToDAGPlan

public static DAGProtos.RootInputLeafOutputProto convertToDAGPlan(org.apache.tez.dag.api.RootInputLeafOutput<? extends TezEntityDescriptor> descriptor)

convertInputDescriptorFromDAGPlan

public static InputDescriptor convertInputDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)

convertOutputDescriptorFromDAGPlan

public static OutputDescriptor convertOutputDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)

convertVertexManagerPluginDescriptorFromDAGPlan

public static VertexManagerPluginDescriptor convertVertexManagerPluginDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)

convertEdgeManagerDescriptorFromDAGPlan

public static EdgeManagerDescriptor convertEdgeManagerDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)

convertProcessorDescriptorFromDAGPlan

public static ProcessorDescriptor convertProcessorDescriptorFromDAGPlan(DAGProtos.TezEntityDescriptorProto proto)

convertTezSessionStatusFromProto

public static TezSessionStatus convertTezSessionStatusFromProto(DAGClientAMProtocolRPC.TezSessionStatusProto proto)

convertTezSessionStatusToProto

public static DAGClientAMProtocolRPC.TezSessionStatusProto convertTezSessionStatusToProto(TezSessionStatus status)

convertFromLocalResources

public static DAGProtos.PlanLocalResourcesProto convertFromLocalResources(Map<String,org.apache.hadoop.yarn.api.records.LocalResource> localResources)

convertFromPlanLocalResources

public static Map<String,org.apache.hadoop.yarn.api.records.LocalResource> convertFromPlanLocalResources(DAGProtos.PlanLocalResourcesProto proto)

convertLocalResourceToPlanLocalResource

public static DAGProtos.PlanLocalResource convertLocalResourceToPlanLocalResource(String name,
                                                                                  org.apache.hadoop.yarn.api.records.LocalResource lr)

convertPlanLocalResourceToLocalResource

public static org.apache.hadoop.yarn.api.records.LocalResource convertPlanLocalResourceToLocalResource(DAGProtos.PlanLocalResource plr)

convertTezCountersFromProto

public static TezCounters convertTezCountersFromProto(DAGProtos.TezCountersProto proto)

convertTezCountersToProto

public static DAGProtos.TezCountersProto convertTezCountersToProto(TezCounters counters)

convertStatusGetOptsToProto

public static DAGProtos.StatusGetOptsProto convertStatusGetOptsToProto(StatusGetOpts statusGetOpts)

convertStatusGetOptsFromProto

public static StatusGetOpts convertStatusGetOptsFromProto(DAGProtos.StatusGetOptsProto proto)

convertStatusGetOptsToProto

public static List<DAGProtos.StatusGetOptsProto> convertStatusGetOptsToProto(Set<StatusGetOpts> statusGetOpts)

convertStatusGetOptsFromProto

public static Set<StatusGetOpts> convertStatusGetOptsFromProto(List<DAGProtos.StatusGetOptsProto> protoList)

convertCredentialsToProto

public static com.google.protobuf.ByteString convertCredentialsToProto(org.apache.hadoop.security.Credentials credentials)

convertByteStringToCredentials

public static org.apache.hadoop.security.Credentials convertByteStringToCredentials(com.google.protobuf.ByteString byteString)

convertVertexLocationHintFromProto

public static VertexLocationHint convertVertexLocationHintFromProto(DAGProtos.VertexLocationHintProto proto)

convertVertexLocationHintToProto

public static DAGProtos.VertexLocationHintProto convertVertexLocationHintToProto(VertexLocationHint vertexLocationHint)

convertPreWarmContextToProto

public static DAGProtos.PreWarmContextProto convertPreWarmContextToProto(PreWarmContext preWarmContext)

convertPreWarmContextFromProto

public static PreWarmContext convertPreWarmContextFromProto(DAGProtos.PreWarmContextProto proto)


Copyright © 2014 Apache Software Foundation. All rights reserved.