@InterfaceAudience.LimitedPrivate(value="Tools") @InterfaceStability.Evolving public class HFileProcedurePrettyPrinter extends AbstractHBaseTool
HFilePrettyPrinter is
that, this class will decode the procedure in the cell for better debugging. You are free to use
HFilePrettyPrinter to dump the same file as well.AbstractHBaseTool.OptionsOrderComparator| Modifier and Type | Field and Description |
|---|---|
private List<org.apache.hadoop.fs.Path> |
files |
private PrintStream |
out |
private Long |
procId |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION| Constructor and Description |
|---|
HFileProcedurePrettyPrinter() |
HFileProcedurePrettyPrinter(PrintStream out) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addAllHFiles() |
protected void |
addOptions()
Override this to add command-line options using
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods. |
protected int |
doWork()
The "main function" of the tool
|
static void |
main(String[] args) |
private void |
printCell(Cell cell) |
private void |
processFile(org.apache.hadoop.fs.Path file) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
This method is called to process the options after they have been parsed.
|
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprivate final PrintStream out
public HFileProcedurePrettyPrinter()
public HFileProcedurePrettyPrinter(PrintStream out)
protected void addOptions()
AbstractHBaseToolAbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions in class AbstractHBaseToolprivate void addAllHFiles() throws IOException
IOExceptionprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseToolprocessOptions in class AbstractHBaseToolprivate void printCell(Cell cell) throws IOException
IOExceptionprivate void processFile(org.apache.hadoop.fs.Path file) throws IOException
IOExceptionprotected int doWork() throws Exception
AbstractHBaseTooldoWork in class AbstractHBaseToolExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.