@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 |
getInputFileForWrite(int srcIdentifier,
int spillNum,
long size)
Create a local input file name.
|
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 |
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 |
getSpillFileForWrite(int spillNumber,
long size)
Create a local spill file name.
|
String |
getSpillFileName(int srcId,
int spillNum)
Construct a spill file name, given a spill number and src id
${uniqueId}_src_${srcId}_spill_${spillNumber}.out
e.g.
|
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 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 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 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 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 getInputFileForWrite(int srcIdentifier, int spillNum, long size) throws IOException
getInputFileForWrite
in class TezTaskOutput
srcIdentifier
- The identifier for the sourcespillNum
- size
- the size of the file @return path the path to the input file.IOException
public String getSpillFileName(int srcId, int spillNum)
getSpillFileName
in class TezTaskOutput
srcId
- spillNum
- Copyright © 2016 Apache Software Foundation. All rights reserved.