@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 input file created earlier
TODO: TEZ-1855.
|
abstract org.apache.hadoop.fs.Path |
getInputFileForWrite(int srcIdentifier,
long size)
Create a local input file name.
|
abstract org.apache.hadoop.fs.Path |
getOutputFile()
Return the path to local 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 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 |
getOutputIndexFile()
Return the path to a local output index file created earlier
TODO TEZ-1855: Remove this.
|
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 |
getSpillFile(int spillNumber)
Return a local output spill file created earlier.
|
abstract org.apache.hadoop.fs.Path |
getSpillFileForWrite(int spillNumber,
long size)
Create a local output 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 output spill index file created earlier
TODO TEZ-1855: Remove this.
|
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 getOutputFile() throws IOException
IOException
public abstract org.apache.hadoop.fs.Path getOutputFileForWrite(long size) throws IOException
size
- the size of the fileIOException
public abstract org.apache.hadoop.fs.Path getOutputFileForWrite() throws IOException
IOException
public abstract org.apache.hadoop.fs.Path getOutputFileForWriteInVolume(org.apache.hadoop.fs.Path existing)
public abstract org.apache.hadoop.fs.Path getOutputIndexFile() throws IOException
IOException
public abstract org.apache.hadoop.fs.Path getOutputIndexFileForWrite(long size) throws IOException
size
- the size of the fileIOException
public 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 spill numberIOException
- // KKK Try removing this. Unnecessary file scans - can be stored in memory instead.public abstract org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber, long size) throws IOException
spillNumber
- the spill numbersize
- the size of the fileIOException
public abstract org.apache.hadoop.fs.Path getSpillIndexFile(int spillNumber) throws IOException
spillNumber
- the spill numberIOException
public abstract org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber, long size) throws IOException
spillNumber
- the spill numbersize
- the size of the spill fileIOException
public abstract org.apache.hadoop.fs.Path getInputFile(InputAttemptIdentifier attemptIdentifier) throws IOException
attemptIdentifier
- The identifier for the sourceIOException
public abstract org.apache.hadoop.fs.Path getInputFileForWrite(int srcIdentifier, long size) throws IOException
srcIdentifier
- The identifier for the sourcesize
- the size of the fileIOException
public abstract String getSpillFileName(int spillNum)
spillNum
- Copyright © 2015 Apache Software Foundation. All rights reserved.