@InterfaceAudience.Private @InterfaceStability.Evolving public class Count extends FsCommand
Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION |
static String |
NAME |
static String |
USAGE |
Constructor and Description |
---|
Count()
Constructor
|
Count(String[] cmd,
int pos,
Configuration conf)
Deprecated.
invoke via
FsShell |
Modifier and Type | Method and Description |
---|---|
protected void |
processOptions(LinkedList<String> args)
Must be implemented by commands to process the command line flags and
check the bounds of the remaining arguments.
|
protected void |
processPath(PathData src)
Hook for commands to implement an operation to be applied on each
path for the command.
|
static void |
registerCommands(CommandFactory factory)
Register the names for the count command
|
getCommandName, run, runAll
displayError, displayError, displayWarning, exitCodeForError, expandArgument, expandArguments, getDepth, getDescription, getName, getReplacementCommand, getUsage, isDeprecated, isRecursive, postProcessPath, processArgument, processArguments, processNonexistentPath, processPathArgument, processPaths, processRawArguments, recursePath, run, setName, setRecursive
getConf, setConf
public static final String NAME
public static final String USAGE
public static final String DESCRIPTION
public Count()
@Deprecated public Count(String[] cmd, int pos, Configuration conf)
FsShell
cmd
- the count commandpos
- the starting index of the argumentsconf
- configurationpublic static void registerCommands(CommandFactory factory)
factory
- the command factory that will instantiate this classprotected void processOptions(LinkedList<String> args)
Command
processOptions
in class Command
args
- the command line argumentsprotected void processPath(PathData src) throws IOException
Command
processPath
in class Command
src
- a PathData
objectIOException
- if anything else goes wrong in the user-implementationCopyright © 2013 Apache Software Foundation. All rights reserved.