|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.mapReduce.MapOutputFile
A local file to be transferred via the MapOutputProtocol
.
Constructor Summary | |
MapOutputFile()
Construct a file for transfer. |
|
MapOutputFile(String mapTaskId,
String reduceTaskId,
int partition)
|
Method Summary | |
static void |
cleanupStorage()
Removes all contents of temporary storage. |
static File |
getInputFile(String mapTaskId,
String reduceTaskId)
Create a local reduce input file name. |
static File |
getOutputFile(String mapTaskId,
int partition)
Create a local map output file name. |
void |
readFields(DataInput in)
Reads the fields of this object from in . |
static void |
removeAll(String taskId)
Removes all of the files related to a task. |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapOutputFile()
public MapOutputFile(String mapTaskId, String reduceTaskId, int partition)
Method Detail |
public static File getOutputFile(String mapTaskId, int partition)
mapTaskId
- a map task idpartition
- a reduce partitionpublic static File getInputFile(String mapTaskId, String reduceTaskId)
mapTaskId
- a map task idreduceTaskId
- a reduce task idpublic static void removeAll(String taskId) throws IOException
IOException
public static void cleanupStorage() throws IOException
IOException
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
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
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |