org.apache.tez.dag.records
Class TezVertexID
java.lang.Object
org.apache.tez.dag.records.TezID
org.apache.tez.dag.records.TezVertexID
- All Implemented Interfaces:
- Comparable<TezID>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<TezID>
@InterfaceAudience.Public
@InterfaceStability.Stable
public class TezVertexID
- extends TezID
TezVertexID represents the immutable and unique identifier for
a Vertex in a Tez DAG. Each TezVertexID encompasses multiple Tez Tasks.
TezVertezID consists of 2 parts. The first part is the TezDAGID,
that is the Tez DAG that this vertex belongs to. The second part is
the vertex number.
- See Also:
TezDAGID,
TezTaskID
VERTEX
public static final String VERTEX
- See Also:
- Constant Field Values
TezVertexID
public TezVertexID()
getInstance
public static TezVertexID getInstance(TezDAGID dagId,
int id)
- Constructs a TezVertexID object from given
TezDAGID.
- Parameters:
dagId - TezDAGID object for this TezVertexIDid - the tip number
getDAGId
public TezDAGID getDAGId()
- Returns the
TezDAGID object that this tip belongs to
equals
public boolean equals(Object o)
- Overrides:
equals in class TezID
compareTo
public int compareTo(TezID o)
- Compare TaskInProgressIds by first jobIds, then by tip numbers and type.
- Specified by:
compareTo in interface Comparable<TezID>- Overrides:
compareTo in class TezID
toString
public String toString()
- Overrides:
toString in class TezID
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields in interface org.apache.hadoop.io.Writable- Overrides:
readFields in class TezID
- Throws:
IOException
readTezVertexID
public static TezVertexID readTezVertexID(DataInput in)
throws IOException
- Throws:
IOException
write
public void write(DataOutput out)
throws IOException
- Specified by:
write in interface org.apache.hadoop.io.Writable- Overrides:
write in class TezID
- Throws:
IOException
appendTo
protected StringBuilder appendTo(StringBuilder builder)
- Add the unique string to the given builder.
- Parameters:
builder - the builder to append to
- Returns:
- the builder that was passed in
hashCode
public int hashCode()
- Overrides:
hashCode in class TezID
fromString
public static TezVertexID fromString(String taskIdStr)
Copyright © 2014 Apache Software Foundation. All rights reserved.