|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.hql.formatter.HtmlTableFormatter
public class HtmlTableFormatter
Formatter that outputs data inside an HTML 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.
Since hbase columns have no typing, the formatter presumes a type of
UTF-8 String. If cells contain images, etc., this formatter will mangle
their display.
TODO: Uses xmlenc. Hopefully it flushes every so often (Claims its a stream-based outputter). Verify.
| Constructor Summary | |
|---|---|
HtmlTableFormatter(Writer o)
|
|
| Method Summary | |
|---|---|
void |
footer()
Output footer. |
Writer |
getOut()
|
void |
header(String[] titles)
Output header. |
boolean |
isNoFormatting()
|
static void |
main(String[] args)
|
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 HtmlTableFormatter(Writer o)
| Method Detail |
|---|
public void header(String[] titles)
throws IOException
TableFormatter
header in interface TableFormattertitles - 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 TableFormatterIOException
public void footer()
throws IOException
TableFormatter
footer in interface TableFormatterIOExceptionpublic Writer getOut()
getOut in interface TableFormatterpublic boolean isNoFormatting()
public void setNoFormatting(boolean noFormatting)
public static void main(String[] args)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||