org.apache.tez.dag.api
Enum EdgeProperty.DataMovementType

java.lang.Object
  extended by java.lang.Enum<EdgeProperty.DataMovementType>
      extended by org.apache.tez.dag.api.EdgeProperty.DataMovementType
All Implemented Interfaces:
Serializable, Comparable<EdgeProperty.DataMovementType>
Enclosing class:
EdgeProperty

public static enum EdgeProperty.DataMovementType
extends Enum<EdgeProperty.DataMovementType>

Defines the manner of data movement between source and destination tasks. Determines which destination tasks have access to data produced on this edge by a source task. A destination task may choose to read any portion of the data available to it.


Enum Constant Summary
BROADCAST
          Output on this edge produced by any source task is available to all destination tasks.
CUSTOM
          Custom routing defined by the user.
ONE_TO_ONE
          Output on this edge produced by the i-th source task is available to the i-th destination task.
SCATTER_GATHER
          The i-th output on this edge produced by all source tasks is available to the same destination task.
 
Method Summary
static EdgeProperty.DataMovementType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EdgeProperty.DataMovementType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ONE_TO_ONE

public static final EdgeProperty.DataMovementType ONE_TO_ONE
Output on this edge produced by the i-th source task is available to the i-th destination task.


BROADCAST

public static final EdgeProperty.DataMovementType BROADCAST
Output on this edge produced by any source task is available to all destination tasks.


SCATTER_GATHER

public static final EdgeProperty.DataMovementType SCATTER_GATHER
The i-th output on this edge produced by all source tasks is available to the same destination task. Source tasks scatter their outputs and they are gathered by designated destination tasks.


CUSTOM

public static final EdgeProperty.DataMovementType CUSTOM
Custom routing defined by the user.

Method Detail

values

public static EdgeProperty.DataMovementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EdgeProperty.DataMovementType c : EdgeProperty.DataMovementType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EdgeProperty.DataMovementType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014 Apache Software Foundation. All rights reserved.