public abstract class Command extends Configured
| 限定符 | 构造器和说明 |
|---|---|
protected |
Command(Configuration conf)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract String |
getCommandName()
Return the command's name excluding the leading character -
|
protected abstract void |
run(Path path)
Execute the command on the input path
|
int |
runAll()
For each source path, execute the command
|
getConf, setConfprotected String[] args
protected Command(Configuration conf)
public abstract String getCommandName()
protected abstract void run(Path path) throws IOException
path - the input pathIOException - if any error occurspublic int runAll()
Copyright © 2009 The Apache Software Foundation