public class CopyMapper extends Mapper<Text,CopyListingFileStatus,Text,Text>
| Modifier and Type | Class and Description |
|---|---|
static class |
CopyMapper.Counter
Hadoop counters for the DistCp CopyMapper.
|
Mapper.Context| Constructor and Description |
|---|
CopyMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
map(Text relPath,
CopyListingFileStatus sourceFileStatus,
Mapper.Context context)
Implementation of the Mapper::map().
|
void |
setup(Mapper.Context context)
Implementation of the Mapper::setup() method.
|
public void setup(Mapper.Context context) throws IOException, InterruptedException
setup in class Mapper<Text,CopyListingFileStatus,Text,Text>context - Mapper's context.IOException - On IO failure.InterruptedException - If the job is interrupted.public void map(Text relPath, CopyListingFileStatus sourceFileStatus, Mapper.Context context) throws IOException, InterruptedException
map in class Mapper<Text,CopyListingFileStatus,Text,Text>relPath - The target path.sourceFileStatus - The source path.IOExceptionInterruptedExceptionCopyright © 2018 CERN. All Rights Reserved.