Class ListTabletsCommand
- java.lang.Object
-
- org.apache.accumulo.shell.Shell.Command
-
- org.apache.accumulo.shell.commands.ListTabletsCommand
-
public class ListTabletsCommand extends Shell.Command
Utility that generates single line tablet info. The output of this could be fed to sort, awk, grep, etc inorder to answer questions like which tablets have the most files.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.shell.Shell.Command
Shell.Command.CompletionSet
-
-
Constructor Summary
Constructors Constructor Description ListTabletsCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()intexecute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState)protected List<org.apache.accumulo.shell.commands.ListTabletsCommand.TabletRowInfo>getMetadataInfo(Shell shellState, org.apache.accumulo.shell.commands.ListTabletsCommand.TableInfo tableInfo)org.apache.commons.cli.OptionsgetOptions()intnumArgs()If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method.protected voidprintResults(org.apache.commons.cli.CommandLine cl, Shell shellState, List<String> lines)-
Methods inherited from class org.apache.accumulo.shell.Shell.Command
getName, getOptionsWithHelp, printHelp, printHelp, registerCompletion, registerCompletionForCommands, registerCompletionForNamespaces, registerCompletionForTables, registerCompletionForUsers, registerCompletionGeneral, usage
-
-
-
-
Method Detail
-
execute
public int execute(String fullCommand, org.apache.commons.cli.CommandLine cl, Shell shellState) throws Exception
- Specified by:
executein classShell.Command- Throws:
Exception
-
printResults
protected void printResults(org.apache.commons.cli.CommandLine cl, Shell shellState, List<String> lines) throws Exception- Throws:
Exception
-
getMetadataInfo
protected List<org.apache.accumulo.shell.commands.ListTabletsCommand.TabletRowInfo> getMetadataInfo(Shell shellState, org.apache.accumulo.shell.commands.ListTabletsCommand.TableInfo tableInfo) throws Exception
- Throws:
Exception
-
description
public String description()
- Specified by:
descriptionin classShell.Command
-
numArgs
public int numArgs()
Description copied from class:Shell.CommandIf the number of arguments is not always zero (not including those arguments handled through Options), make sure to override theShell.Command.usage()method. Otherwise,Shell.Command.usage()does need to be overridden.- Specified by:
numArgsin classShell.Command
-
getOptions
public org.apache.commons.cli.Options getOptions()
- Overrides:
getOptionsin classShell.Command
-
-