water.H2O.store_size()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中water.H2O.store_size()方法的一些代码示例,展示了H2O.store_size()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。H2O.store_size()方法的具体详情如下:
包路径:water.H2O
类名称:H2O
方法名:store_size

H2O.store_size介绍

暂无

代码示例

代码示例来源: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 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

@BeforeClass public static void setupCloud() {
 H2O.main(new String[] {});
 _initial_keycnt = H2O.store_size();
 assert Job.all().length == 0;      // No outstanding jobs
 _testClassTimer = new Timer();
}

代码示例来源:origin: h2oai/h2o-2

int leaked_keys = H2O.store_size() - _initial_keycnt;
int nvecs = 0, nchunks = 0, nframes = 0, nmodels = 0, nothers = 0;
if( leaked_keys > 0 ) {
_initial_keycnt = H2O.store_size();

相关文章