use of water.util.RString in project h2o-2 by h2oai.
the class Levels2 method link.
public static String link(Key k, String content) {
RString rs = new RString("<a href='Levels2.query?source=%$key'>" + content + "</a>");
rs.replace("key", k.toString());
return rs.toString();
}
use of water.util.RString in project h2o-2 by h2oai.
the class Cancel method link.
public static String link(Key k, String content) {
RString rs = new RString("<a href='Cancel.html?key=%key'>%content</a>");
rs.replace("key", k.toString());
rs.replace("content", content);
return rs.toString();
}
use of water.util.RString in project h2o-2 by h2oai.
the class Console method build.
@Override
protected String build(Response response) {
RString rs = new RString(Boot._init.loadContent("/h2o/console.html"));
rs.replace("HELP", getHelp());
return rs.toString();
}
use of water.util.RString in project h2o-2 by h2oai.
the class ReBalance method toHTML.
@Override
public boolean toHTML(StringBuilder sb) {
if (UKV.get(after) == null) {
return false;
}
RString aft = new RString("<a href='Inspect2.html?src_key=%$key'>%key</a>");
aft.replace("key", after);
DocGen.HTML.section(sb, "Rebalancing done. Frame '" + aft.toString() + "' now has " + ((Frame) UKV.get(after)).anyVec().nChunks() + " chunks (source: " + source.anyVec().nChunks() + ").");
return true;
}
use of water.util.RString in project h2o-2 by h2oai.
the class Interaction method toHTML.
@Override
public boolean toHTML(StringBuilder sb) {
Frame fr = UKV.get(dest());
if (fr == null) {
return false;
}
RString aft = new RString("<a href='Inspect2.html?src_key=%$key'>%key</a>");
aft.replace("key", destination_key.toString());
DocGen.HTML.section(sb, report() + "<br/>Frame '" + aft.toString() + "' contains the interaction feature(s).");
return true;
}
Aggregations