Class FormattingCLIUtils

java.lang.Object
org.apache.hadoop.yarn.client.util.FormattingCLIUtils

public final class FormattingCLIUtils extends Object
The main core class that generates the ASCII TABLE.
  • Constructor Details

    • FormattingCLIUtils

      public FormattingCLIUtils(String title)
      Contains the title constructor.
      Parameters:
      title - titleName
  • Method Details

    • addHeaders

      public FormattingCLIUtils addHeaders(List<?> headers)
      Adds elements from the collection to the header data in the table.
      Parameters:
      headers - Header data
      Returns:
      FormattingCLIUtils object
    • addLine

      public FormattingCLIUtils addLine(Object... objects)
      Adds a row of normal data to the table.
      Parameters:
      objects - Common row data
      Returns:
      FormattingCLIUtils object
    • render

      public String render()
      Rendering is born as a result.
      Returns:
      ASCII string of Table