MCPcopy Create free account
hub / github.com/GateNLP/gate-core / delete

Method delete

src/main/java/gate/persist/SerialDataStore.java:222–228  ·  view source on GitHub ↗

Delete the data store.

()

Source from the content-addressed store, hash-verified

220 /** Delete the data store.
221 */
222 @Override
223 public void delete() throws PersistenceException {
224 if(storageDir == null || ! Files.rmdir(storageDir))
225 throw new PersistenceException("couldn't delete " + storageDir);
226
227 Gate.getDataStoreRegister().remove(this);
228 } // delete()
229
230 /** Delete a resource from the data store.
231 */

Callers 3

testSaveRestoreMethod · 0.95
testMultipleLrsMethod · 0.95
testDeleteMethod · 0.95

Calls 7

rmdirMethod · 0.95
getDataStoreRegisterMethod · 0.95
fireResourceDeletedMethod · 0.95
removeMethod · 0.65
deleteMethod · 0.65
listMethod · 0.45

Tested by 3

testSaveRestoreMethod · 0.76
testMultipleLrsMethod · 0.76
testDeleteMethod · 0.76