@InterfaceAudience.Private @InterfaceStability.Unstable public class TezTaskOutputFiles extends TezTaskOutput
conf, uniqueId
Constructor and Description |
---|
TezTaskOutputFiles(org.apache.hadoop.conf.Configuration conf,
String uniqueId) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.fs.Path |
getInputFile(InputAttemptIdentifier attemptIdentifier)
Return a local input file created earlier
${appDir}/${uniqueId}_spill_${spillNumber}.out
e.g.
|
org.apache.hadoop.fs.Path |
getInputFileForWrite(int srcIdentifier,
long size)
Create a local input file name.
|
org.apache.hadoop.fs.Path |
getOutputFile()
Return the path to local output file created earlier.
|
org.apache.hadoop.fs.Path |
getOutputFileForWrite()
Create a local output file name.
|
org.apache.hadoop.fs.Path |
getOutputFileForWrite(long size)
Create a local output file name.
|
org.apache.hadoop.fs.Path |
getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local output file name on the same volume.
|
org.apache.hadoop.fs.Path |
getOutputIndexFile()
Return the path to a local output index file created earlier
${appDir}/output/${uniqueId}/file.out.index
e.g.
|
org.apache.hadoop.fs.Path |
getOutputIndexFileForWrite(long size)
Create a local output index file name.
|
org.apache.hadoop.fs.Path |
getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local output index file name on the same volume.
|
org.apache.hadoop.fs.Path |
getSpillFile(int spillNumber)
Return a local output spill file created earlier.
|
org.apache.hadoop.fs.Path |
getSpillFileForWrite(int spillNumber,
long size)
Create a local spill file name.
|
String |
getSpillFileName(int spillNum)
Construct a spill file name, given a spill number
${uniqueId}_spill_${spillNumber}.out
e.g.
|
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 output spill index file name.
|
public TezTaskOutputFiles(org.apache.hadoop.conf.Configuration conf, String uniqueId)
public org.apache.hadoop.fs.Path getOutputFile() throws IOException
getOutputFile
in class TezTaskOutput
IOException
public org.apache.hadoop.fs.Path getOutputFileForWrite(long size) throws IOException
getOutputFileForWrite
in class TezTaskOutput
size
- the size of the fileIOException
public org.apache.hadoop.fs.Path getOutputFileForWrite() throws IOException
getOutputFileForWrite
in class TezTaskOutput
IOException
public 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 TezTaskOutput
IOException
public org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size) throws IOException
getOutputIndexFileForWrite
in class TezTaskOutput
size
- the size of the fileIOException
public 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 TezTaskOutput
spillNumber
- the spill numberIOException
public org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber, long size) throws IOException
getSpillFileForWrite
in class TezTaskOutput
spillNumber
- the spill numbersize
- the size of the spill fileIOException
public org.apache.hadoop.fs.Path getSpillIndexFile(int spillNumber) throws IOException
getSpillIndexFile
in class TezTaskOutput
spillNumber
- the numberIOException
public org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber, long size) throws IOException
getSpillIndexFileForWrite
in class TezTaskOutput
spillNumber
- the spill numbersize
- the size of the fileIOException
public org.apache.hadoop.fs.Path getInputFile(InputAttemptIdentifier attemptIdentifier) throws IOException
getInputFile
in class TezTaskOutput
attemptIdentifier
- an identifier for a task. The attempt information is ignored.IOException
public org.apache.hadoop.fs.Path getInputFileForWrite(int srcIdentifier, long size) throws IOException
getInputFileForWrite
in class TezTaskOutput
srcIdentifier
- The identifier for the sourcesize
- the size of the fileIOException
public String getSpillFileName(int spillNum)
getSpillFileName
in class TezTaskOutput
spillNum
- Copyright © 2015 Apache Software Foundation. All rights reserved.