{"id":16843771,"url":"https://github.com/stevelauc/bplustreeset","last_synced_at":"2025-03-18T05:44:20.991Z","repository":{"id":172681256,"uuid":"649600420","full_name":"SteveLauC/BPlusTreeSet","owner":"SteveLauC","description":"A set implementation backed by B+Tree","archived":false,"fork":false,"pushed_at":"2023-07-31T02:49:12.000Z","size":88,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T12:31:02.527Z","etag":null,"topics":["bplustree","datastructure","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SteveLauC.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-05T08:28:57.000Z","updated_at":"2024-03-11T07:20:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"55c7ced8-3dd5-4f51-8e40-8d9fb98ce21e","html_url":"https://github.com/SteveLauC/BPlusTreeSet","commit_stats":null,"previous_names":["stevelauc/bplustreeset"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FBPlusTreeSet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FBPlusTreeSet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FBPlusTreeSet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SteveLauC%2FBPlusTreeSet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SteveLauC","download_url":"https://codeload.github.com/SteveLauC/BPlusTreeSet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244166639,"owners_count":20409177,"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","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":["bplustree","datastructure","rust"],"created_at":"2024-10-13T12:53:36.547Z","updated_at":"2025-03-18T05:44:20.972Z","avatar_url":"https://github.com/SteveLauC.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## BPlusTreeSet\n\nA set implementation backed by B+Tree.\n\n\u003e This impl follows the pseudocode given in\n\u003e [Database System Concepts 7th Edition](https://www.db-book.com/).\n\n## API\n\n```Rust\npub fn new(order: usize) -\u003e Self\npub fn len(\u0026self) -\u003e usize\npub fn is_empty(\u0026self) -\u003e bool\npub fn height(\u0026self) -\u003e usize\npub fn insert(\u0026mut self, value: T) -\u003e bool\npub fn remove\u003cQ\u003e(\u0026mut self, value: \u0026Q) -\u003e bool\npub fn get\u003cQ\u003e(\u0026self, value: \u0026Q) -\u003e Option\u003cRc\u003cT\u003e\u003e\npub fn contains\u003cQ\u003e(\u0026self, value: \u0026Q) -\u003e bool\npub fn iter(\u0026self) -\u003e Iter\u003c'_, T\u003e\n```\n\n## Basic Usage\n\n```rust\nuse b_plus_tree_set::{BPlusTreeSet, Iter};\nuse std::rc::Rc;\n\nlet mut set = BPlusTreeSet::new(4);\n\nfor i in 0..3 {\n    assert!(!set.contains(\u0026i));\n    assert!(set.insert(i));\n}\n\nlet iter = set.iter();\nassert!(iter.eq((0..3).map(|n| Rc::new(n))));\n\nassert_eq!(set.len(), 3);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevelauc%2Fbplustreeset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevelauc%2Fbplustreeset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevelauc%2Fbplustreeset/lists"}