Spring for Apache Hadoop

org.springframework.yarn.support.console
Class Table

java.lang.Object
  extended by org.springframework.yarn.support.console.Table

public class Table
extends java.lang.Object

Provide a basic concept of a table structure containing a map of column headers and a collection of rows. Used to render text-based tables (console output).

Author:
Gunnar Hillert, Janne Valkealahti
See Also:
UiUtils

Constructor Summary
Table()
           
 
Method Summary
 Table addHeader(java.lang.Integer columnIndex, TableHeader tableHeader)
           
 void calculateColumnWidths()
           
 java.util.Map<java.lang.Integer,TableHeader> getHeaders()
           
 java.util.List<TableRow> getRows()
           
 TableRow newRow()
          Add a new empty row to the table.
 void setRows(java.util.List<TableRow> rows)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Table

public Table()
Method Detail

getRows

public java.util.List<TableRow> getRows()

setRows

public void setRows(java.util.List<TableRow> rows)

getHeaders

public java.util.Map<java.lang.Integer,TableHeader> getHeaders()

addHeader

public Table addHeader(java.lang.Integer columnIndex,
                       TableHeader tableHeader)

newRow

public TableRow newRow()
Add a new empty row to the table.

Returns:
the newly created row, which can be then be populated

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

calculateColumnWidths

public void calculateColumnWidths()

Spring for Apache Hadoop