public abstract class Command extends Configured
Modifier | Constructor and Description |
---|---|
protected |
Command(Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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, setConf
protected 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 © 2010 The Apache Software Foundation