/** * Removes all values from the ValueStore. * * @exception IOException * If an I/O error occurred. */ public void clear() throws IOException { try { Lock writeLock = lockManager.getWriteLock(); try { dataStore.clear(); valueCache.clear(); valueIDCache.clear(); namespaceCache.clear(); namespaceIDCache.clear(); initBNodeParams(); setNewRevision(); } finally { writeLock.release(); } } catch (InterruptedException e) { IOException ioe = new IOException("Failed to acquire write lock"); ioe.initCause(e); throw ioe; } }
/** * Removes all values from the ValueStore. * * @exception IOException * If an I/O error occurred. */ public void clear() throws IOException { try { Lock writeLock = lockManager.getWriteLock(); try { dataStore.clear(); valueCache.clear(); valueIDCache.clear(); namespaceCache.clear(); namespaceIDCache.clear(); initBNodeParams(); setNewRevision(); } finally { writeLock.release(); } } catch (InterruptedException e) { IOException ioe = new IOException("Failed to acquire write lock"); ioe.initCause(e); throw ioe; } }