{"id":40360981,"url":"https://github.com/mrwilson/java-dirty","last_synced_at":"2026-01-20T10:09:30.246Z","repository":{"id":28179710,"uuid":"31681214","full_name":"mrwilson/java-dirty","owner":"mrwilson","description":"File-backed append-only object store.","archived":false,"fork":false,"pushed_at":"2016-06-12T20:20:56.000Z","size":78,"stargazers_count":117,"open_issues_count":3,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-12T14:25:11.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrwilson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-04T21:37:34.000Z","updated_at":"2025-01-14T03:04:06.000Z","dependencies_parsed_at":"2022-09-04T12:10:22.276Z","dependency_job_id":null,"html_url":"https://github.com/mrwilson/java-dirty","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mrwilson/java-dirty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwilson%2Fjava-dirty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwilson%2Fjava-dirty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwilson%2Fjava-dirty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwilson%2Fjava-dirty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrwilson","download_url":"https://codeload.github.com/mrwilson/java-dirty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrwilson%2Fjava-dirty/sbom","scorecard":{"id":664986,"data":{"date":"2025-08-11","repo":{"name":"github.com/mrwilson/java-dirty","commit":"d34addd56fde159107fc8f8b6f4dba73f440f082"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T17:42:12.069Z","repository_id":28179710,"created_at":"2025-08-21T17:42:12.069Z","updated_at":"2025-08-21T17:42:12.069Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28601359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T09:39:28.479Z","status":"ssl_error","status_checked_at":"2026-01-20T09:38:10.511Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-20T10:09:28.974Z","updated_at":"2026-01-20T10:09:30.239Z","avatar_url":"https://github.com/mrwilson.png","language":"Java","funding_links":[],"categories":["数据库"],"sub_categories":["Spring Cloud框架"],"readme":"# java-dirty\n\n[![Build Status](https://travis-ci.org/mrwilson/java-dirty.png?branch=master)](https://travis-ci.org/mrwilson/java-dirty)\n\nA fast file-based append-only object store, using memory mapped files.\n\n## Is java-dirty safe to use with multiple concurrent writers?\n\nAbsolutely not - but it's fast enough that putting it behind e.g. a Disruptor and consuming writes in a single thread should be fine.\n\n## Downloading from Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003euk.co.probablyfine\u003c/groupId\u003e\n  \u003cartifactId\u003ejava-dirty\u003c/artifactId\u003e\n  \u003cversion\u003e1.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## Usage\n\n### Creating a store.\n```java\nStore\u003cFoo\u003e store = Store.of(Foo.class).from(\"/path/to/file\");\n```\n### Inserting an object\n```java\nstore.put(new Foo(1,2));\n```\n### Iterating over all objects in the store\n```java\nstore.all().forEach(System.out::println);\n```\n### Iterate over objects, most recent first\n```java\nstore.reverse().forEach(System.out::println);\n```\n### Iterate over objects from a starting index\n```java\nstore.from(100).forEach(System.out::println);\n```\n### Access an index directly\n```java\nOptional\u003cFoo\u003e foo = store.get(1234);\n```\n### Reset the entire store\n```java\nstore.reset(); // Reset position to 0, overwriting old entries\n```\n### Close the store and its backing file\n```java\nstore.close();\n```\nTrying to read from/write to a closed store will throw a ClosedStoreException.\n### Observe each write\n```java\nstore.observeWrites((object, index) -\u003e\n  System.out.println(\"Stored \"+object+\" at \"+index);\n);\n```\njava-dirty does not support replacements, or deletions. Both `.all()` and `.reverse()` expose a Stream\u003cFoo\u003e.\n\n## Examples\n\n### Look up most recent version of an object by index\n\n```java\nOptional\u003cStoredObject\u003e first = store\n    .reverse()\n    .filter(x -\u003e x.indexField == valueToFind)\n    .findFirst();\n```\n\n### Build an lookup index using write observers\n\n```java\nStore\u003cStoredObject\u003e store = Store.of(StoredObject.class).from(\"/some/path\");\n\nMap\u003cInteger, Integer\u003e index = new HashMap\u003c\u003e();\n\nstore.observeWrites((object, location) -\u003e {\n  index.put(object.indexField, location);\n});\n\nstore.put(new StoredObject(1234,5));\n\nstore.get(index.get(1234)); // Optional[StoredObject(1234,5)];\n```\n\n## Supported Fields\n\njava-dirty will only persist primitive fields on objects. All primitive types are currently supported.\n\n### Performance\n\nSee the README in java-dirty-benchmarks for the latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwilson%2Fjava-dirty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrwilson%2Fjava-dirty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrwilson%2Fjava-dirty/lists"}