org.apache.tez.dag.api
Class EdgeProperty

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

public class EdgeProperty
extends Object


Nested Class Summary
static class EdgeProperty.DataMovementType
          Defines the manner of data movement between source and destination tasks.
static class EdgeProperty.DataSourceType
          Determines the lifetime of the data produced on this edge by a source task.
static class EdgeProperty.SchedulingType
          Determines when the destination task is eligible to run, once the source task is eligible to run.
 
Constructor Summary
EdgeProperty(EdgeManagerDescriptor edgeManagerDescriptor, EdgeProperty.DataSourceType dataSourceType, EdgeProperty.SchedulingType schedulingType, OutputDescriptor edgeSource, InputDescriptor edgeDestination)
          Setup an Edge which uses a custom EdgeManager
EdgeProperty(EdgeProperty.DataMovementType dataMovementType, EdgeProperty.DataSourceType dataSourceType, EdgeProperty.SchedulingType schedulingType, OutputDescriptor edgeSource, InputDescriptor edgeDestination)
           
 
Method Summary
 EdgeProperty.DataMovementType getDataMovementType()
           
 EdgeProperty.DataSourceType getDataSourceType()
           
 InputDescriptor getEdgeDestination()
           
 EdgeManagerDescriptor getEdgeManagerDescriptor()
          Returns the Edge Manager specifications for this edge.
 OutputDescriptor getEdgeSource()
           
 EdgeProperty.SchedulingType getSchedulingType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdgeProperty

public EdgeProperty(EdgeProperty.DataMovementType dataMovementType,
                    EdgeProperty.DataSourceType dataSourceType,
                    EdgeProperty.SchedulingType schedulingType,
                    OutputDescriptor edgeSource,
                    InputDescriptor edgeDestination)
Parameters:
dataMovementType -
dataSourceType -
schedulingType -
edgeSource - The OutputDescriptor that generates data on the edge.
edgeDestination - The InputDescriptor which will consume data from the edge.

EdgeProperty

public EdgeProperty(EdgeManagerDescriptor edgeManagerDescriptor,
                    EdgeProperty.DataSourceType dataSourceType,
                    EdgeProperty.SchedulingType schedulingType,
                    OutputDescriptor edgeSource,
                    InputDescriptor edgeDestination)
Setup an Edge which uses a custom EdgeManager

Parameters:
edgeManagerDescriptor - the EdgeManager specifications. This can be null if the edge manager will be setup at runtime
dataSourceType -
schedulingType -
edgeSource - The OutputDescriptor that generates data on the edge.
edgeDestination - The InputDescriptor which will consume data from the edge.
Method Detail

getDataMovementType

public EdgeProperty.DataMovementType getDataMovementType()

getDataSourceType

public EdgeProperty.DataSourceType getDataSourceType()

getSchedulingType

public EdgeProperty.SchedulingType getSchedulingType()

getEdgeDestination

public InputDescriptor getEdgeDestination()
Returns:
the InputDescriptor which will consume data from the edge.

getEdgeSource

public OutputDescriptor getEdgeSource()
Returns:
the OutputDescriptor which produces data on the edge.

getEdgeManagerDescriptor

@InterfaceAudience.Private
public EdgeManagerDescriptor getEdgeManagerDescriptor()
Returns the Edge Manager specifications for this edge.

Returns:
@link EdgeManagerDescriptor if a custom edge was setup, null otherwise.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All rights reserved.