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;
}