Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
    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();
    }