public class Count extends Command
| 构造器和说明 |
|---|
Count(String[] cmd,
int pos,
Configuration conf)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCommandName()
Return the command's name excluding the leading character -
|
static boolean |
matches(String cmd)
Check if a command is the count command
|
protected void |
run(Path path)
Execute the command on the input path
|
getConf, setConfpublic static final String DESCRIPTION
public Count(String[] cmd, int pos, Configuration conf)
cmd - the count commandpos - the starting index of the argumentspublic static boolean matches(String cmd)
cmd - A string representation of a command starting with "-"public String getCommandName()
CommandgetCommandName 在类中 Commandprotected void run(Path path) throws IOException
Commandrun 在类中 Commandpath - the input pathIOException - if any error occursCopyright © 2009 The Apache Software Foundation