|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.fs.shell.Command
public abstract class Command
An abstract class for the execution of a file system command
| Field Summary | |
|---|---|
protected java.lang.String[] |
args
|
| Constructor Summary | |
|---|---|
protected |
Command(Configuration conf)
Constructor |
| Method Summary | |
|---|---|
abstract java.lang.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 |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String[] args
| Constructor Detail |
|---|
protected Command(Configuration conf)
| Method Detail |
|---|
public abstract java.lang.String getCommandName()
protected abstract void run(Path path)
throws java.io.IOException
path - the input path
java.io.IOException - if any error occurspublic int runAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||