本文整理了Java中water.H2O.localKeySet()
方法的一些代码示例,展示了H2O.localKeySet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。H2O.localKeySet()
方法的具体详情如下:
包路径:water.H2O
类名称:H2O
方法名:localKeySet
暂无
代码示例来源:origin: h2oai/h2o-2
public static void dumpKeys(String msg) {
System.err.println("-->> Store dump <<--");
System.err.println(" " + msg);
System.err.println(" Keys: " + H2O.store_size());
for ( Key k : H2O.localKeySet()) System.err.println(" * " + k);
System.err.println("----------------------");
}
代码示例来源:origin: h2oai/h2o-2
@Override protected Response serve() {
int kcnt=0;
for( Key key : H2O.localKeySet() ) {
kcnt++;
Value v = H2O.raw_get(key);
Log.debug("K: ",key," V:",(v==null?"null":""+v._max));
}
return Response.error("Dumped "+kcnt+" keys");
}
}
代码示例来源:origin: h2oai/h2o-2
@Override public void lcompute() {
int keysetSize = H2O.localKeySet().size();
int numNodes = H2O.CLOUD._memary.length;
int nodeIdx = H2O.SELF.index();
Log.info("Removing "+keysetSize+" keys on this node; nodeIdx("+nodeIdx+") numNodes("+numNodes+")");
// Now remove all keys.
Futures fs = new Futures();
for( Key key : H2O.localKeySet() )
DKV.remove(key, fs);
fs.blockForPending();
Log.info("Keys remaining: "+H2O.store_size());
tryComplete();
}
代码示例来源:origin: h2oai/h2o-2
int nvecs = 0, nchunks = 0, nframes = 0, nmodels = 0, nothers = 0;
if( leaked_keys > 0 ) {
for( Key k : H2O.localKeySet() ) {
Value value = DKV.get(k);
if( value==null ) { leaked_keys--; continue; }
内容来源于网络,如有侵权,请联系作者删除!