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;
  }
}

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 .
