Class FormattingCLIUtils
java.lang.Object
org.apache.hadoop.yarn.client.util.FormattingCLIUtils
The main core class that generates the ASCII TABLE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHeaders(List<?> headers) Adds elements from the collection to the header data in the table.Adds a row of normal data to the table.render()Rendering is born as a result.
-
Constructor Details
-
FormattingCLIUtils
Contains the title constructor.- Parameters:
title- titleName
-
-
Method Details
-
addHeaders
Adds elements from the collection to the header data in the table.- Parameters:
headers- Header data- Returns:
- FormattingCLIUtils object
-
addLine
Adds a row of normal data to the table.- Parameters:
objects- Common row data- Returns:
- FormattingCLIUtils object
-
render
Rendering is born as a result.- Returns:
- ASCII string of Table
-