public class CopyMapper extends Mapper<Text,FileStatus,Text,Text>
限定符和类型 | 类和说明 |
---|---|
static class |
CopyMapper.Counter
Hadoop counters for the DistCp CopyMapper.
|
Mapper.Context
构造器和说明 |
---|
CopyMapper() |
限定符和类型 | 方法和说明 |
---|---|
void |
map(Text relPath,
FileStatus 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
在类中 Mapper<Text,FileStatus,Text,Text>
context
- Mapper's context.IOException
- On IO failure.InterruptedException
- If the job is interrupted.public void map(Text relPath, FileStatus sourceFileStatus, Mapper.Context context) throws IOException, InterruptedException
map
在类中 Mapper<Text,FileStatus,Text,Text>
relPath
- The target path.sourceFileStatus
- The source path.IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation