Package org.springframework.xd.shell.util

Examples of org.springframework.xd.shell.util.Table


  protected String toDSL() {
    return String.format("%s --name=%s --fieldName=%s", getDslName(), getName(), fieldName);
  }

  public Table constructFVCDisplay(TreeMap<String, Double> fvcMap) {
    Table t = new Table();
    NumberFormat pattern = new DecimalFormat();
    // TODO: Should actually be fieldName=
    t.addHeader(1, new TableHeader("FieldValueCounter=" + getName())).addHeader(2, new TableHeader("")).addHeader(
        3, new TableHeader(""));
    t.newRow().addValue(1, "VALUE").addValue(2, "-").addValue(3, "COUNT");
    for (Map.Entry<String, Double> entry : fvcMap.descendingMap().entrySet()) {
      t.newRow().addValue(1, entry.getKey()).addValue(2, "|").addValue(3, pattern.format(entry.getValue()));
    }
    return t;
  }
View Full Code Here

TOP

Related Classes of org.springframework.xd.shell.util.Table

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.