{"id":16572754,"url":"https://github.com/lemire/sparsebitmap","last_synced_at":"2025-07-30T21:33:35.984Z","repository":{"id":5235698,"uuid":"6412704","full_name":"lemire/sparsebitmap","owner":"lemire","description":"A simple sparse bitmap implementation in java","archived":false,"fork":false,"pushed_at":"2016-01-28T15:29:48.000Z","size":50,"stargazers_count":21,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-14T03:05:17.035Z","etag":null,"topics":["bitset","compression","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ArchiDroid/android_build","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lemire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-27T01:25:52.000Z","updated_at":"2024-03-31T14:13:09.000Z","dependencies_parsed_at":"2022-09-02T07:11:57.321Z","dependency_job_id":null,"html_url":"https://github.com/lemire/sparsebitmap","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lemire/sparsebitmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemire%2Fsparsebitmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemire%2Fsparsebitmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemire%2Fsparsebitmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemire%2Fsparsebitmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemire","download_url":"https://codeload.github.com/lemire/sparsebitmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemire%2Fsparsebitmap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945184,"owners_count":24170215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bitset","compression","java"],"created_at":"2024-10-11T21:28:30.087Z","updated_at":"2025-07-30T21:33:35.953Z","avatar_url":"https://github.com/lemire.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SparseBitmap\r\n[![][maven img]][maven]\r\n[![][license img]][license]\r\n[![docs-badge][]][docs]\r\n\r\n\r\n\r\nA simple sparse bitmap implementation that has good performance.\r\n\r\nLicensing: Apache License, Version 2.0\r\n\r\n\r\n## Usage:\r\n\r\nAPI: http://www.javadoc.io/doc/com.googlecode.sparsebitmap/SparseBitmap/\r\n\r\n```\r\n  public static void main(String[] args) {\r\n    SparseBitmap sp1 = SparseBitmap.bitmapOf(1, 2, 100, 150, 1000, 123456);\r\n\r\n    for (int i : sp1)\r\n      System.out.print(i + \" \");\r\n    System.out.println();\r\n\r\n    SparseBitmap sp2 = SparseBitmap.bitmapOf(1, 2, 3, 1000, 123456, 1234567);\r\n\r\n    for (int i : sp2)\r\n      System.out.print(i + \" \");\r\n    System.out.println();\r\n\r\n    SparseBitmap sand = sp1.and(sp2);\r\n\r\n    System.out.println(\"and:\");\r\n\r\n    for (int i : sand)\r\n      System.out.print(i + \" \");\r\n    System.out.println();\r\n    \r\n    SparseBitmap sor = sp1.or(sp2);\r\n    \r\n    System.out.println(\"or:\");\r\n\r\n    for (int i : sor)\r\n      System.out.print(i + \" \");\r\n    System.out.println();\r\n\r\n  }\r\n```\r\n\r\n## Maven support:\r\n\r\nYou can also specify the dependency in the Maven \"pom.xml\" file:\r\n\r\n```\r\n  \u003cdependencies\u003e\r\n    \u003cdependency\u003e\r\n\t\u003cgroupId\u003ecom.googlecode.sparsebitmap\u003c/groupId\u003e\r\n\t\u003cartifactId\u003eSparseBitmap\u003c/artifactId\u003e\r\n\t\u003cversion\u003e0.0.4\u003c/version\u003e\r\n    \u003c/dependency\u003e\r\n  \u003c/dependencies\u003e\r\n```\r\n\r\nMake sure to replace the version number with the version you actually want.\r\n\r\n## Contributors\r\n\r\nDaniel Lemire (http://lemire.me/en/) with contributions from\r\nMichal Zerola (https://github.com/zerola)\r\n\r\n[maven img]:https://maven-badges.herokuapp.com/maven-central/org.roaringbitmap/RoaringBitmap/badge.svg\r\n[maven]:http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22SparseBitmap%22\r\n\r\n[license]:LICENSE\r\n[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg\r\n\r\n[docs-badge]:https://img.shields.io/badge/API-docs-blue.svg?style=flat-square\r\n[docs]:http://www.javadoc.io/doc/com.googlecode.sparsebitmap/SparseBitmap\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemire%2Fsparsebitmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemire%2Fsparsebitmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemire%2Fsparsebitmap/lists"}