@InterfaceAudience.LimitedPrivate(value="Tools") @InterfaceStability.Evolving public class WALProcedurePrettyPrinter extends AbstractHBaseTool
WALPrettyPrinter
is that, this class will decode the
procedure in the WALEdit for better debugging. You are free to use WALPrettyPrinter
to
dump the same file as well.AbstractHBaseTool.OptionsOrderComparator
Modifier and Type | Field and Description |
---|---|
private String |
file |
private static DateTimeFormatter |
FORMATTER |
private static String |
KEY_TMPL |
private PrintStream |
out |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
Constructor and Description |
---|
WALProcedurePrettyPrinter() |
WALProcedurePrettyPrinter(PrintStream out) |
Modifier and Type | Method and Description |
---|---|
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) |
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, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
private static final String KEY_TMPL
private static final DateTimeFormatter FORMATTER
private PrintStream out
public WALProcedurePrettyPrinter()
public WALProcedurePrettyPrinter(PrintStream out)
protected void addOptions()
AbstractHBaseTool
AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String)
and similar methods.addOptions
in class AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
AbstractHBaseTool
processOptions
in class AbstractHBaseTool
protected int doWork() throws Exception
AbstractHBaseTool
doWork
in class AbstractHBaseTool
Exception
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.