Example #1
0
 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);
 }
Example #2
0
 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;
 }
Example #3
0
 @Override
 public void remove() {
   super.remove();
   UKV.remove(_progress);
 }