private void internalDeleteRange(TableIterator<H, R, V> range) { RangeBatch<H, R, V> batch = newRangeBatch(); try { while (range.hasNext()) { TableRow<H, R, V> next = range.next(); batch.delete(next.getHashKey(), next.getRangeKey()); } batch.flush(); } finally { try { batch.close(); } catch (IOException e) { throw new DbException(e); } } }
private void internalDeleteRange(TableIterator<H, R, V> range) { RangeBatch<H, R, V> batch = newRangeBatch(); try { while (range.hasNext()) { TableRow<H, R, V> next = range.next(); batch.delete(next.getHashKey(), next.getRangeKey()); } batch.flush(); } finally { try { batch.close(); } catch (IOException e) { throw new DbException(e); } } }
private void internalDeleteRange(TableIterator<H, R, V> range) { RangeBatch<H, R, V> batch = newRangeBatch(); try { while (range.hasNext()) { TableRow<H, R, V> next = range.next(); batch.delete(next.getHashKey(), next.getRangeKey()); } batch.flush(); } finally { try { batch.close(); } catch (IOException e) { throw new DbException(e); } } }