Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature-55: storeObject and Reference Files Refactor #56

Merged
merged 79 commits into from
Jan 24, 2024

Conversation

doulikecookiedough
Copy link
Contributor

@doulikecookiedough doulikecookiedough commented Dec 22, 2023

This feature branch consists of the changes required for HashStore to integrate into Metacat's current workflow. Specifically, the ability to store an object in the absence of an identifier.

Summary of Changes:

  • Objects are stored using their content identifier (cid) as the permanent address
  • storeObject has been refactored to allow for storing data only
  • There is a new .../refs directory which houses the /cid/.. and /pid/.. references along with the supporting methods (to create, delete and update the refs files) and tests to facilitate the tagging process (so that objects can be found, retrieved and deleted)
  • There are three new Public API methods: verifyObject, tagObject, findObject
  • deleteObject, retrieveObject, getHexDigest have been updated to reflect the above changes
  • Updated README.md to describe HashStore

@taojing2002 When you are back from your break and settled in, can you please help review this pull request? After receiving/incorporating your feedback, we can then merge this into develop and then main and officially release HashStore-java 1.0.0

…ce and update FileHashStore with placeholder methods
…xception class when pid refs file already exists
…test in new test class 'FileHashStoreReferencesTest'
…nced and improve logging and error statements
…, refactor 'getRealPath', update HashStore interface and update affected junit tests
… method for 'storeObject' to be called to with only an InputStream
… and add new exception class 'PidNotFoundInCidRefsFileException'
…ct from knbvm's metacatdb should be skipped or not
…)' to convert a String object to an int object, now calls '.parseInt()'
… and replace with return statement, and update junit tests
…, and 'verifyObject' to return a boolean value in 'FileHashStore'
…cksum algo and object size; and add/revise junit tests.'
…an object based on its cid and add new junit tests
@doulikecookiedough doulikecookiedough merged commit 456d7a1 into develop Jan 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants