示例#1
0
文件: Job.java 项目: chouclee/h2o
 public void onException(Throwable ex) {
   UKV.remove(dest());
   Value v = DKV.get(progressKey());
   if (v != null) {
     ChunkProgress p = v.get();
     p = p.error(ex.getMessage());
     DKV.put(progressKey(), p);
   }
   cancel(ex);
 }
示例#2
0
文件: Job.java 项目: chouclee/h2o
 protected String[] getVectorDomain(final Vec v) {
   assert v == null || v.isInt() || v.isEnum() : "Cannot get vector domain!";
   if (v == null) return null;
   String[] r;
   if (v.isEnum()) {
     r = v.domain();
   } else {
     Vec tmp = v.toEnum();
     r = tmp.domain();
     UKV.remove(tmp._key);
   }
   return r;
 }
示例#3
0
文件: Job.java 项目: chouclee/h2o
 @Override
 public void remove() {
   super.remove();
   UKV.remove(_progress);
 }