|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.io.SequentialFileNamingScheme
public class SequentialFileNamingScheme
Default FileNamingScheme
that uses an incrementing sequence number in
order to generate unique file names.
Method Summary | |
---|---|
static SequentialFileNamingScheme |
getInstance()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SequentialFileNamingScheme getInstance()
public String getMapOutputName(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path outputDirectory) throws IOException
FileNamingScheme
getMapOutputName
in interface FileNamingScheme
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
systempublic String getReduceOutputName(org.apache.hadoop.conf.Configuration configuration, org.apache.hadoop.fs.Path outputDirectory, int partitionId) throws IOException
FileNamingScheme
getReduceOutputName
in interface FileNamingScheme
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 |