|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.Task
org.apache.nutch.mapReduce.MapTask
A Map task.
Constructor Summary | |
MapTask()
|
|
MapTask(String jobFile,
String taskId,
FileSplit split)
|
Method Summary | |
org.apache.nutch.mapReduce.TaskRunner |
createRunner(TaskTracker tracker)
Return an approprate thread runner for this task. |
FileSplit |
getSplit()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
run(JobConf job,
TaskUmbilicalProtocol umbilical)
Run this task as a part of the named job. |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class org.apache.nutch.mapReduce.Task |
getJobFile, getTaskId, setJobFile, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MapTask()
public MapTask(String jobFile, String taskId, FileSplit split)
Method Detail |
public org.apache.nutch.mapReduce.TaskRunner createRunner(TaskTracker tracker)
Task
createRunner
in class Task
public FileSplit getSplit()
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
write
in class Task
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
readFields
in class Task
IOException
public void run(JobConf job, TaskUmbilicalProtocol umbilical) throws IOException
Task
run
in class Task
umbilical
- for progress reports
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |