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, setConf
public 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()
Command
getCommandName
在类中 Command
protected void run(Path path) throws IOException
Command
run
在类中 Command
path
- the input pathIOException
- if any error occursCopyright © 2009 The Apache Software Foundation