org.apache.hadoop.hbase.io.hfile
Class HFilePrettyPrinter
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class HFilePrettyPrinter
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
Implements pretty-printing functionality for HFiles.
| Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
HFilePrettyPrinter
public HFilePrettyPrinter()
HFilePrettyPrinter
public HFilePrettyPrinter(org.apache.hadoop.conf.Configuration conf)
setPrintStreams
public void setPrintStreams(PrintStream out,
PrintStream err)
parseOptions
public boolean parseOptions(String[] args)
throws org.apache.commons.cli.ParseException,
IOException
- Throws:
org.apache.commons.cli.ParseException
IOException
run
public int run(String[] args)
- Runs the command-line pretty-printer, and returns the desired command
exit code (zero for success, non-zero for failure).
- Specified by:
run in interface org.apache.hadoop.util.Tool
processFile
public int processFile(org.apache.hadoop.fs.Path file)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.