Search in sources :

Example 11 with RString

use of water.util.RString in project h2o-2 by h2oai.

the class LR2 method link.

/** Return the query link to this page */
public static String link(Key k, String content) {
    RString rs = new RString("<a href='LR2.query?data_key=%$key'>%content</a>");
    rs.replace("key", k.toString());
    rs.replace("content", content);
    return rs.toString();
}
Also used : RString(water.util.RString)

Example 12 with RString

use of water.util.RString in project h2o-2 by h2oai.

the class PCAScore method link.

public static String link(String key_param, Key k, String content) {
    RString rs = new RString("<a href='/2/PCAScore.query?%key_param=%$key'>%content</a>");
    rs.replace("key_param", key_param);
    rs.replace("key", k.toString());
    rs.replace("content", content);
    return rs.toString();
}
Also used : RString(water.util.RString)

Example 13 with RString

use of water.util.RString in project h2o-2 by h2oai.

the class NaiveBayes method link.

public static String link(Key src_key, String content) {
    RString rs = new RString("<a href='/2/NaiveBayes.query?%key_param=%$key'>%content</a>");
    rs.replace("key_param", "source");
    rs.replace("key", src_key.toString());
    rs.replace("content", content);
    return rs.toString();
}
Also used : RString(water.util.RString)

Example 14 with RString

use of water.util.RString in project h2o-2 by h2oai.

the class PCA method link.

public static String link(Key src_key, String content) {
    RString rs = new RString("<a href='/2/PCA.query?%key_param=%$key'>%content</a>");
    rs.replace("key_param", "source");
    rs.replace("key", src_key.toString());
    rs.replace("content", content);
    return rs.toString();
}
Also used : RString(water.util.RString)

Example 15 with RString

use of water.util.RString in project h2o-2 by h2oai.

the class Inspector method redirect.

private Response redirect(String typename, String urlTemplate, String keyParamName) {
    RString r = new RString(urlTemplate);
    r.replace("typename", typename);
    return Response.redirect(this, r.toString(), keyParamName, src_key.toString());
}
Also used : 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