Class Count

All Implemented Interfaces:
Configurable

@Private @Evolving public class Count extends FsCommand
Count the number of directories, files, bytes, quota, and remaining quota.
  • Field Details

  • Constructor Details

    • Count

      public Count()
      Constructor
    • Count

      @Deprecated public Count(String[] cmd, int pos, Configuration conf)
      Deprecated.
      invoke via FsShell
      Constructor
      Parameters:
      cmd - the count command
      pos - the starting index of the arguments
      conf - configuration
  • Method Details

    • registerCommands

      public static void registerCommands(CommandFactory factory)
      Register the names for the count command
      Parameters:
      factory - the command factory that will instantiate this class
    • processOptions

      protected void processOptions(LinkedList<String> args)
      Description copied from class: Command
      Must be implemented by commands to process the command line flags and check the bounds of the remaining arguments. If an IllegalArgumentException is thrown, the FsShell object will print the short usage of the command.
      Overrides:
      processOptions in class Command
      Parameters:
      args - the command line arguments
    • processPath

      protected void processPath(PathData src) throws IOException
      Description copied from class: Command
      Hook for commands to implement an operation to be applied on each path for the command. Note implementation of this method is optional if earlier methods in the chain handle the operation.
      Overrides:
      processPath in class Command
      Parameters:
      src - a PathData object
      Throws:
      IOException - if anything else goes wrong in the user-implementation