|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.shell.formatter.AsciiTableFormatter
public class AsciiTableFormatter
Formatter that outputs data inside an ASCII table.
If only a single cell result, then no formatting is done. Presumption is
that client manages serial access outputting tables. Does not close passed
Writer
.
Constructor Summary | |
---|---|
AsciiTableFormatter(Writer o)
|
Method Summary | |
---|---|
void |
footer()
Output footer. |
Writer |
getOut()
|
void |
header(String[] titles)
Output header. |
boolean |
isNoFormatting()
|
void |
row(String[] cells)
Output a row. |
void |
setNoFormatting(boolean noFormatting)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsciiTableFormatter(Writer o)
Method Detail |
---|
public Writer getOut()
getOut
in interface TableFormatter
public void header(String[] titles) throws IOException
TableFormatter
header
in interface TableFormatter
titles
- List of titles. Pass null if no formatting (i.e.
no header, no footer, etc.
IOException
public void row(String[] cells) throws IOException
TableFormatter
row
in interface TableFormatter
IOException
public void footer() throws IOException
TableFormatter
footer
in interface TableFormatter
IOException
public boolean isNoFormatting()
public void setNoFormatting(boolean noFormatting)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |