|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.runtime.library.common.task.local.output.TezTaskOutput
org.apache.tez.runtime.library.common.task.local.output.TezLocalTaskOutputFiles
@InterfaceAudience.Private @InterfaceStability.Unstable public class TezLocalTaskOutputFiles
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 the Child running the Task.
| Field Summary |
|---|
| Fields inherited from class org.apache.tez.runtime.library.common.task.local.output.TezTaskOutput |
|---|
conf, uniqueId |
| Constructor Summary | |
|---|---|
TezLocalTaskOutputFiles(org.apache.hadoop.conf.Configuration conf,
String uniqueId)
|
|
| Method Summary | |
|---|---|
org.apache.hadoop.fs.Path |
getInputFile(InputAttemptIdentifier mapId)
Return a local reduce input file created earlier |
org.apache.hadoop.fs.Path |
getInputFileForWrite(int taskId,
long size)
Create a local reduce input file name. |
org.apache.hadoop.fs.Path |
getOutputFile()
Return the path to local map output file created earlier |
org.apache.hadoop.fs.Path |
getOutputFileForWrite()
Create a local map output file name. |
org.apache.hadoop.fs.Path |
getOutputFileForWrite(long size)
Create a local map output file name. |
org.apache.hadoop.fs.Path |
getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local map output file name on the same volume. |
org.apache.hadoop.fs.Path |
getOutputIndexFile()
Return the path to a local map output index file created earlier |
org.apache.hadoop.fs.Path |
getOutputIndexFileForWrite(long size)
Create a local map output index file name. |
org.apache.hadoop.fs.Path |
getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local map output index file name on the same volume. |
org.apache.hadoop.fs.Path |
getSpillFile(int spillNumber)
Return a local map spill file created earlier. |
org.apache.hadoop.fs.Path |
getSpillFileForWrite(int spillNumber,
long size)
Create a local map spill file name. |
org.apache.hadoop.fs.Path |
getSpillIndexFile(int spillNumber)
Return a local map spill index file created earlier |
org.apache.hadoop.fs.Path |
getSpillIndexFileForWrite(int spillNumber,
long size)
Create a local map spill index file name. |
void |
removeAll()
Removes all of the files related to a task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TezLocalTaskOutputFiles(org.apache.hadoop.conf.Configuration conf,
String uniqueId)
| Method Detail |
|---|
public org.apache.hadoop.fs.Path getOutputFile()
throws IOException
getOutputFile in class TezTaskOutputIOException
public org.apache.hadoop.fs.Path getOutputFileForWrite(long size)
throws IOException
getOutputFileForWrite in class TezTaskOutputsize - the size of the file
IOException
public org.apache.hadoop.fs.Path getOutputFileForWrite()
throws IOException
getOutputFileForWrite in class TezTaskOutputIOExceptionpublic org.apache.hadoop.fs.Path getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
getOutputFileForWriteInVolume in class TezTaskOutput
public org.apache.hadoop.fs.Path getOutputIndexFile()
throws IOException
getOutputIndexFile in class TezTaskOutputIOException
public org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size)
throws IOException
getOutputIndexFileForWrite in class TezTaskOutputsize - the size of the file
IOExceptionpublic org.apache.hadoop.fs.Path getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
getOutputIndexFileForWriteInVolume in class TezTaskOutput
public org.apache.hadoop.fs.Path getSpillFile(int spillNumber)
throws IOException
getSpillFile in class TezTaskOutputspillNumber - the number
IOException
public org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber,
long size)
throws IOException
getSpillFileForWrite in class TezTaskOutputspillNumber - the numbersize - the size of the file
IOException
public org.apache.hadoop.fs.Path getSpillIndexFile(int spillNumber)
throws IOException
getSpillIndexFile in class TezTaskOutputspillNumber - the number
IOException
public org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber,
long size)
throws IOException
getSpillIndexFileForWrite in class TezTaskOutputspillNumber - the numbersize - the size of the file
IOException
public org.apache.hadoop.fs.Path getInputFile(InputAttemptIdentifier mapId)
throws IOException
getInputFile in class TezTaskOutputmapId - a map task id
IOException
public org.apache.hadoop.fs.Path getInputFileForWrite(int taskId,
long size)
throws IOException
getInputFileForWrite in class TezTaskOutputtaskId - a task idsize - the size of the file
IOException
public void removeAll()
throws IOException
removeAll in class TezTaskOutputIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||