Class LocalJobOutputFiles
java.lang.Object
org.apache.hadoop.mapred.nativetask.util.LocalJobOutputFiles
- All Implemented Interfaces:
NativeTaskOutput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.fs.PathgetInputFile(int mapId) Return a local reduce input file created earlierorg.apache.hadoop.fs.PathgetInputFileForWrite(org.apache.hadoop.mapred.TaskID mapId, long size, org.apache.hadoop.conf.Configuration conf) Create a local reduce input file name.org.apache.hadoop.fs.PathReturn the path to local map output file created earlierorg.apache.hadoop.fs.PathgetOutputFileForWrite(long size) Create a local map output file name.org.apache.hadoop.fs.PathReturn the path to a local map output index file created earlierorg.apache.hadoop.fs.PathgetOutputIndexFileForWrite(long size) Create a local map output index file name.getOutputName(int partition) org.apache.hadoop.fs.PathgetSpillFile(int spillNumber) Return a local map spill file created earlier.org.apache.hadoop.fs.PathgetSpillFileForWrite(int spillNumber, long size) Create a local map spill file name.org.apache.hadoop.fs.PathgetSpillIndexFile(int spillNumber) Return a local map spill index file created earlierorg.apache.hadoop.fs.PathgetSpillIndexFileForWrite(int spillNumber, long size) Create a local map spill index file name.voidRemoves all of the files related to a task.
-
Constructor Details
-
LocalJobOutputFiles
-
-
Method Details
-
getOutputFile
Return the path to local map output file created earlier- Specified by:
getOutputFilein interfaceNativeTaskOutput- Throws:
IOException
-
getOutputFileForWrite
Create a local map output file name.- Specified by:
getOutputFileForWritein interfaceNativeTaskOutput- Parameters:
size- the size of the file- Throws:
IOException
-
getOutputIndexFile
Return the path to a local map output index file created earlier- Specified by:
getOutputIndexFilein interfaceNativeTaskOutput- Throws:
IOException
-
getOutputIndexFileForWrite
Create a local map output index file name.- Specified by:
getOutputIndexFileForWritein interfaceNativeTaskOutput- Parameters:
size- the size of the file- Throws:
IOException
-
getSpillFile
Return a local map spill file created earlier.- Specified by:
getSpillFilein interfaceNativeTaskOutput- Parameters:
spillNumber- the number- Throws:
IOException
-
getSpillFileForWrite
public org.apache.hadoop.fs.Path getSpillFileForWrite(int spillNumber, long size) throws IOException Create a local map spill file name.- Specified by:
getSpillFileForWritein interfaceNativeTaskOutput- Parameters:
spillNumber- the numbersize- the size of the file- Throws:
IOException
-
getSpillIndexFile
Return a local map spill index file created earlier- Specified by:
getSpillIndexFilein interfaceNativeTaskOutput- Parameters:
spillNumber- the number- Throws:
IOException
-
getSpillIndexFileForWrite
public org.apache.hadoop.fs.Path getSpillIndexFileForWrite(int spillNumber, long size) throws IOException Create a local map spill index file name.- Specified by:
getSpillIndexFileForWritein interfaceNativeTaskOutput- Parameters:
spillNumber- the numbersize- the size of the file- Throws:
IOException
-
getInputFile
Return a local reduce input file created earlier- Specified by:
getInputFilein interfaceNativeTaskOutput- Parameters:
mapId- a map task id- Throws:
IOException
-
getInputFileForWrite
public org.apache.hadoop.fs.Path getInputFileForWrite(org.apache.hadoop.mapred.TaskID mapId, long size, org.apache.hadoop.conf.Configuration conf) throws IOException Create a local reduce input file name.- Specified by:
getInputFileForWritein interfaceNativeTaskOutput- Parameters:
mapId- a map task idsize- the size of the file- Throws:
IOException
-
removeAll
Removes all of the files related to a task.- Specified by:
removeAllin interfaceNativeTaskOutput- Throws:
IOException
-
getOutputName
- Specified by:
getOutputNamein interfaceNativeTaskOutput
-