@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 TezTaskOutputsize - the size of the fileIOExceptionpublic 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 TezTaskOutputpublic org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size)
throws IOException
getOutputIndexFileForWrite in class TezTaskOutputsize - the size of the fileIOExceptionpublic org.apache.hadoop.fs.Path getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
getOutputIndexFileForWriteInVolume in class TezTaskOutputpublic org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber,
long size)
throws IOException
getSpillFileForWrite in class TezTaskOutputspillNumber - the spill numbersize - the size of the spill fileIOExceptionpublic org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber,
long size)
throws IOException
getSpillIndexFileForWrite in class TezTaskOutputspillNumber - the spill numbersize - the size of the fileIOExceptionpublic org.apache.hadoop.fs.Path getInputFileForWrite(int srcIdentifier,
int spillNum,
long size)
throws IOException
getInputFileForWrite in class TezTaskOutputsrcIdentifier - The identifier for the sourcespillNum - size - the size of the file @return path the path to the input file.IOExceptionpublic String getSpillFileName(int srcId, int spillNum)
getSpillFileName in class TezTaskOutputsrcId - spillNum - Copyright © 2016 Apache Software Foundation. All rights reserved.