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();
}
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();
}
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();
}
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();
}
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());
}
Aggregations