|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.MapOutputFile
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class MapOutputFile
Manipulate the working area for the transient store for maps and reduces. This class is used by map and reduce tasks to identify the directories that they need to write to/read from for intermediate files. The callers of these methods are from child space and see mapreduce.cluster.local.dir as taskTracker/jobCache/jobId/attemptId This class should not be used from TaskTracker space.
Constructor Summary | |
---|---|
MapOutputFile()
|
Method Summary | |
---|---|
org.apache.hadoop.conf.Configuration |
getConf()
|
abstract org.apache.hadoop.fs.Path |
getInputFile(int mapId)
Return a local reduce input file created earlier |
abstract org.apache.hadoop.fs.Path |
getInputFileForWrite(TaskID mapId,
long size)
Create a local reduce input file name. |
abstract org.apache.hadoop.fs.Path |
getOutputFile()
Return the path to local map output file created earlier |
abstract org.apache.hadoop.fs.Path |
getOutputFileForWrite(long size)
Create a local map output file name. |
abstract org.apache.hadoop.fs.Path |
getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local map output file name on the same volume. |
abstract org.apache.hadoop.fs.Path |
getOutputIndexFile()
Return the path to a local map output index file created earlier |
abstract org.apache.hadoop.fs.Path |
getOutputIndexFileForWrite(long size)
Create a local map output index file name. |
abstract org.apache.hadoop.fs.Path |
getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local map output index file name on the same volume. |
abstract org.apache.hadoop.fs.Path |
getSpillFile(int spillNumber)
Return a local map spill file created earlier. |
abstract org.apache.hadoop.fs.Path |
getSpillFileForWrite(int spillNumber,
long size)
Create a local map spill file name. |
abstract org.apache.hadoop.fs.Path |
getSpillIndexFile(int spillNumber)
Return a local map spill index file created earlier |
abstract org.apache.hadoop.fs.Path |
getSpillIndexFileForWrite(int spillNumber,
long size)
Create a local map spill index file name. |
abstract void |
removeAll()
Removes all of the files related to a task. |
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapOutputFile()
Method Detail |
---|
public abstract org.apache.hadoop.fs.Path getOutputFile() throws IOException
IOException
public abstract org.apache.hadoop.fs.Path getOutputFileForWrite(long size) throws IOException
size
- the size of the file
IOException
public abstract org.apache.hadoop.fs.Path getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
public abstract org.apache.hadoop.fs.Path getOutputIndexFile() throws IOException
IOException
public abstract org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size) throws IOException
size
- the size of the file
IOException
public abstract org.apache.hadoop.fs.Path getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
public abstract org.apache.hadoop.fs.Path getSpillFile(int spillNumber) throws IOException
spillNumber
- the number
IOException
public abstract org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber, long size) throws IOException
spillNumber
- the numbersize
- the size of the file
IOException
public abstract org.apache.hadoop.fs.Path getSpillIndexFile(int spillNumber) throws IOException
spillNumber
- the number
IOException
public abstract org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber, long size) throws IOException
spillNumber
- the numbersize
- the size of the file
IOException
public abstract org.apache.hadoop.fs.Path getInputFile(int mapId) throws IOException
mapId
- a map task id
IOException
public abstract org.apache.hadoop.fs.Path getInputFileForWrite(TaskID mapId, long size) throws IOException
mapId
- a map task idsize
- the size of the file
IOException
public abstract void removeAll() throws IOException
IOException
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |