DataONEorg / hashstore-java

HashStore, a hash-based object store for DataONE data packages
Apache License 2.0
1 stars 0 forks source link

Rename 'verifyObject' #92

Closed doulikecookiedough closed 2 months ago

doulikecookiedough commented 2 months ago

verifyObject was initially introduced to help the client manage the scenario where only a data object is stored and subsequently determined to be no longer needed. After further discussion with @taojing2002, we have determined that this utility method should be included.

Since we have the signature for storeObject(InputStream), the client should have a way to reverse this process. Not providing this functionality and leaving it to the client could lead to unnecessary complications, as they might need to directly calculate the address of the data object (and be forced to bypass the HashStore Public API).

We will rename verifyObject to deleteInvalidObject for clarity purposes.

doulikecookiedough commented 2 months ago

This has been completed via Feature-92: Rename verifyObject to deleteInvalidObject