Class CatCommand

  • All Implemented Interfaces:
    org.apache.hadoop.conf.Configurable, Command

    public class CatCommand
    extends BaseCommand
    • Constructor Detail

      • CatCommand

        public CatCommand​(org.slf4j.Logger console,
                          long defaultNumRecords)
    • Method Detail

      • run

        public int run()
                throws IOException
        Description copied from interface: Command
        Runs this Command.
        Returns:
        a return code for the process, 0 indicates success.
        Throws:
        IOException - if there is an error while running the command
      • getExamples

        public List<String> getExamples()
        Description copied from interface: Command
        Returns a list of example uses. Lines starting with '#' will not have the executable name added when formatting.
        Returns:
        a list of String examples