@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class TezTaskOutput extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected String |
uniqueId |
| Constructor and Description |
|---|
TezTaskOutput(org.apache.hadoop.conf.Configuration conf,
String uniqueId) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.apache.hadoop.fs.Path |
getInputFile(InputAttemptIdentifier attemptIdentifier)
Return a local reduce input file created earlier
|
abstract org.apache.hadoop.fs.Path |
getInputFileForWrite(int taskIdentifier,
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()
Create a local output file name.
|
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 String |
getSpillFileName(int spillNum)
Construct a spill file name, given a spill number
|
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.
|
protected org.apache.hadoop.conf.Configuration conf
protected String uniqueId
public TezTaskOutput(org.apache.hadoop.conf.Configuration conf,
String uniqueId)
public abstract org.apache.hadoop.fs.Path getOutputFile()
throws IOException
IOExceptionpublic abstract org.apache.hadoop.fs.Path getOutputFileForWrite(long size)
throws IOException
size - the size of the fileIOExceptionpublic abstract org.apache.hadoop.fs.Path getOutputFileForWrite()
throws IOException
IOExceptionpublic abstract org.apache.hadoop.fs.Path getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
public abstract org.apache.hadoop.fs.Path getOutputIndexFile()
throws IOException
IOExceptionpublic abstract org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size)
throws IOException
size - the size of the fileIOExceptionpublic 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 numberIOExceptionpublic abstract org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber,
long size)
throws IOException
spillNumber - the numbersize - the size of the fileIOExceptionpublic abstract org.apache.hadoop.fs.Path getSpillIndexFile(int spillNumber)
throws IOException
spillNumber - the numberIOExceptionpublic abstract org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber,
long size)
throws IOException
spillNumber - the numbersize - the size of the fileIOExceptionpublic abstract org.apache.hadoop.fs.Path getInputFile(InputAttemptIdentifier attemptIdentifier) throws IOException
attemptIdentifier - The identifier for the source taskIOExceptionpublic abstract org.apache.hadoop.fs.Path getInputFileForWrite(int taskIdentifier,
long size)
throws IOException
taskIdentifier - The identifier for the source tasksize - the size of the fileIOExceptionpublic abstract String getSpillFileName(int spillNum)
spillNum - public abstract void removeAll()
throws IOException
IOExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.