@InterfaceAudience.LimitedPrivate(value="Tools") public class DataBlockEncodingValidator extends AbstractHBaseTool
AbstractHBaseTool.OptionsOrderComparator
Modifier and Type | Field and Description |
---|---|
private static byte[] |
DATA_BLOCK_ENCODING |
private static org.slf4j.Logger |
LOG |
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
Constructor and Description |
---|
DataBlockEncodingValidator() |
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
|
protected void |
printUsage() |
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.
|
private int |
validateDBE()
Check DataBlockEncodings of column families are compatible.
|
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, processOldArgs, run, setConf
private static final org.slf4j.Logger LOG
private static final byte[] DATA_BLOCK_ENCODING
public DataBlockEncodingValidator()
private int validateDBE() throws IOException
IOException
- if a remote or network exception occursprotected void printUsage()
printUsage
in class AbstractHBaseTool
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.