Search in sources :

Example 16 with RString

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();
}
Also used : RString(water.util.RString)

Example 17 with RString

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();
}
Also used : RString(water.util.RString)

Example 18 with RString

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();
}
Also used : RString(water.util.RString)

Example 19 with RString

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;
}
Also used : Frame(water.fvec.Frame) RString(water.util.RString)

Example 20 with RString

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;
}
Also used : Frame(water.fvec.Frame) RString(water.util.RString)

Aggregations

RString (water.util.RString)30 Frame (water.fvec.Frame)3 Test (org.junit.Test)2 AutoBuffer (water.AutoBuffer)1 PrettyPrint (water.PrettyPrint)1