|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.yarn.support.console.UiUtils
public abstract class UiUtils
Contains utility methods for rendering data to a formatted console output. E.g. it provides helper methods for rendering ASCII-based data tables.
Field Summary | |
---|---|
static int |
COLUMN_1
|
static int |
COLUMN_2
|
static int |
COLUMN_3
|
static int |
COLUMN_4
|
static int |
COLUMN_5
|
static int |
COLUMN_6
|
static java.lang.String |
HORIZONTAL_LINE
|
Constructor Summary | |
---|---|
UiUtils()
|
Method Summary | |
---|---|
static java.lang.String |
getHeaderBorder(java.util.Map<java.lang.Integer,TableHeader> headers)
Renders the Table header border, based on the map of provided headers. |
static java.lang.String |
renderMapDataAsTable(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data,
java.util.List<java.lang.String> columns)
Renders a textual representation of the list of provided Map data |
static java.lang.String |
renderParameterInfoDataAsTable(java.util.Map<java.lang.String,java.lang.String> parameters)
Renders a textual representation of provided parameter map. |
static java.lang.String |
renderParameterInfoDataAsTable(java.util.Map<java.lang.String,java.lang.String> parameters,
boolean withHeader,
int lastColumnMaxWidth)
|
static java.lang.String |
renderTextTable(Table table)
|
static java.lang.String |
renderTextTable(Table table,
boolean withHeader)
Renders a textual representation of the provided Table |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HORIZONTAL_LINE
public static final int COLUMN_1
public static final int COLUMN_2
public static final int COLUMN_3
public static final int COLUMN_4
public static final int COLUMN_5
public static final int COLUMN_6
Constructor Detail |
---|
public UiUtils()
Method Detail |
---|
public static java.lang.String renderMapDataAsTable(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> data, java.util.List<java.lang.String> columns)
columns
- List of Maps
public static java.lang.String renderParameterInfoDataAsTable(java.util.Map<java.lang.String,java.lang.String> parameters, boolean withHeader, int lastColumnMaxWidth)
public static java.lang.String renderParameterInfoDataAsTable(java.util.Map<java.lang.String,java.lang.String> parameters)
parameters
- Map of parameters (key, value)
public static java.lang.String renderTextTable(Table table)
public static java.lang.String renderTextTable(Table table, boolean withHeader)
Table
table
- Table data Table
public static java.lang.String getHeaderBorder(java.util.Map<java.lang.Integer,TableHeader> headers)
headers
- Map of headers containing meta information e.g. name+width of header
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |