@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 |
getInputFileForWrite(int srcIdentifier,
int spillNum,
long size)
Create a local input file name.
|
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 output file name.
|
abstract org.apache.hadoop.fs.Path |
getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local output file name on the same volume.
|
abstract org.apache.hadoop.fs.Path |
getOutputIndexFileForWrite(long size)
Create a local output index file name.
|
abstract org.apache.hadoop.fs.Path |
getOutputIndexFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
Create a local output index file name on the same volume.
|
abstract org.apache.hadoop.fs.Path |
getSpillFileForWrite(int spillNumber,
long size)
Create a local output spill file name.
|
abstract String |
getSpillFileName(int srcId,
int spillNum)
Construct a spill file name, given a spill number
|
abstract org.apache.hadoop.fs.Path |
getSpillIndexFileForWrite(int spillNumber,
long size)
Create a local output spill index file name.
|
protected final org.apache.hadoop.conf.Configuration conf
protected final String uniqueId
public TezTaskOutput(org.apache.hadoop.conf.Configuration conf,
String uniqueId)
conf - the configuration from which local-dirs will be picked upuniqueId - a unique identifier for the specific input / output. This is expected to be
unique for all the Inputs / Outputs within a container - i.e. even if the
container is used for multiple tasks, this id should be unique for inputs /
outputs spanning across tasks. This is also expected to be unique across all
tasks for a vertex.public 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 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 getSpillFileForWrite(int spillNumber,
long size)
throws IOException
spillNumber - the spill numbersize - the size of the fileIOExceptionpublic abstract org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber,
long size)
throws IOException
spillNumber - the spill numbersize - the size of the spill fileIOExceptionpublic abstract org.apache.hadoop.fs.Path getInputFileForWrite(int srcIdentifier,
int spillNum,
long size)
throws IOException
srcIdentifier - The identifier for the sourcespillNum - size - the size of the file @return path the path to the input file.IOExceptionpublic abstract String getSpillFileName(int srcId, int spillNum)
srcId - spillNum - Copyright © 2016 Apache Software Foundation. All rights reserved.