public class TaskId extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
TaskId()
TaskId constructor.
|
TaskId(JobId localjobId,
int id)
TaskId constructor with jobId and taskId.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getId()
Getter method for TaskID.
|
int |
getJobId()
Getter method for jobId.
|
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString()
Print method for TaskId.
|
void |
write(DataOutput out) |
public TaskId()
public TaskId(JobId localjobId, int id)
localjobId
- : Job identifierid
- : Task identifierpublic final int getJobId()
public final long getId()
public final String toString()
public final void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public final void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.