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); }
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; }
@Override public void remove() { super.remove(); UKV.remove(_progress); }