org.apache.tez.dag.api
Class VertexGroup

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

public class VertexGroup
extends Object

Represents a virtual collection of vertices whose members can be treated as a single named collection for graph operations. Only the following connections are valid. A VertexGroup can be connected as an input to a consumer Vertex. The tasks of the destination vertex see a single input named after the VertexGroup instead multiple inputs from the members of the VertexGroup. An output can be added to a VertexGroup. All outgoing edges & outputs of a VertexGroup are automatically transferred to the member vertices of the VertexGroup. A VertexGroup is not part of the final DAG.


Method Summary
 VertexGroup addOutput(String outputName, OutputDescriptor outputDescriptor, Class<? extends OutputCommitter> outputCommitterClazz)
          Add an common output to the group of vertices.
 String getGroupName()
          Get the name of the group
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getGroupName

public String getGroupName()
Get the name of the group

Returns:
name

addOutput

public VertexGroup addOutput(String outputName,
                             OutputDescriptor outputDescriptor,
                             Class<? extends OutputCommitter> outputCommitterClazz)
Add an common output to the group of vertices. Refer to Vertex.addOutput(String, OutputDescriptor, Class)


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All rights reserved.