org.apache.hadoop.hbase.shell
Class TableFormatterFactory

java.lang.Object
  extended by org.apache.hadoop.hbase.shell.TableFormatterFactory

public class TableFormatterFactory
extends Object

Table formatter. Specify formatter by setting "hbaseshell.formatter" property in hbase-site.xml or by setting system property hbaseshell.formatter. System property setting prevails over all other configurations. Outputs UTF-8 encoded Strings even if original data is binary. On static initialization, changes System.out to be a UTF-8 output stream. .

TODO: Mysql has --skip-column-names and --silent which inserts a tab as separator. Also has --html and --xml.

To use the html formatter, currently set HBASE_OPTS as in: $ HBASE_OPTS="-Dhbaseshell.formatter=org.apache.hadoop.hbase.shell.formatter.HtmlTableFormatter" ./bin/hbase shell


Constructor Summary
TableFormatterFactory(Writer out, Configuration c)
           
 
Method Summary
 TableFormatter get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableFormatterFactory

public TableFormatterFactory(Writer out,
                             Configuration c)
Method Detail

get

public TableFormatter get()
Returns:
The table formatter instance


Copyright © 2006 The Apache Software Foundation