|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileNamingScheme
Encapsulates rules for naming output files. It is the responsibility of implementors to avoid file name collisions.
| Method Summary | |
|---|---|
String |
getMapOutputName(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path outputDirectory)
Get the output file name for a map task. |
String |
getReduceOutputName(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path outputDirectory,
int partitionId)
Get the output file name for a reduce task. |
| Method Detail |
|---|
String getMapOutputName(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path outputDirectory)
throws IOException
configuration - The configuration of the job for which the map output
is being writtenoutputDirectory - The directory where the output will be written
IOException - if an exception occurs while accessing the output file
system
String getReduceOutputName(org.apache.hadoop.conf.Configuration configuration,
org.apache.hadoop.fs.Path outputDirectory,
int partitionId)
throws IOException
configuration - The configuration of the job for which output is being
writtenoutputDirectory - The directory where the file will be writtenpartitionId - The partition of the reduce task being output
IOException - if an exception occurs while accessing output file
system
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||