public void close() throws Exception { if (_extent != null && _extent._openItrs != null) { _extent.lock(); try { _extent._openItrs.remove(this); } finally { _extent.unlock(); } } _closed = true; ((Closeable) getIterator()).close(); }
public void close() throws Exception { if (_extent != null && _extent._openItrs != null) { _extent.lock(); try { _extent._openItrs.remove(this); } finally { _extent.unlock(); } } _closed = true; for (Iterator itr = getIterators().iterator(); itr.hasNext(); ) ((Closeable) itr.next()).close(); }