|
|||||||||||
| 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 partition
public static File getInputFile(String mapTaskId,
String reduceTaskId)
mapTaskId - a map task idreduceTaskId - a reduce task id
public static void removeAll(String taskId)
throws IOException
IOException
public static void cleanupStorage()
throws IOException
IOException
public void write(DataOutput out)
throws IOException
Writableout.
write in interface WritableIOException
public void readFields(DataInput in)
throws IOException
Writablein. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields in interface WritableIOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||