org.apache.hadoop.hbase.shell
Interface TableFormatter

All Known Implementing Classes:
AsciiTableFormatter, HtmlTableFormatter

public interface TableFormatter

Interface implemented by table formatters outputting select results. Implementations must have a constructor that takes a Writer.

See Also:
AsciiTableFormatter

Method Summary
 void footer()
          Output footer.
 Writer getOut()
           
 void header(String[] titles)
          Output header.
 void row(String[] cells)
          Output a row.
 

Method Detail

header

void header(String[] titles)
            throws IOException
Output header.

Parameters:
titles - Titles to emit.
Throws:
IOException

footer

void footer()
            throws IOException
Output footer.

Throws:
IOException

row

void row(String[] cells)
         throws IOException
Output a row.

Parameters:
cells -
Throws:
IOException

getOut

Writer getOut()
Returns:
Output stream being used (This is in interface to enforce fact that formatters use Writers -- that they operate on character streams rather than on byte streams).


Copyright © 2006 The Apache Software Foundation