Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/realmurgyl/btree-dart

BTree Implementation on Dart
https://github.com/realmurgyl/btree-dart

btree btreedart dart dartbtree structure

Last synced: 3 days ago
JSON representation

BTree Implementation on Dart

Awesome Lists containing this project

README

        

BTree Implementation on Dart.

- Free software: _GPL v3_.0

Install

```bash
$ dart pub add btree
```

Import

```dart
import 'package:btreedart/btreedart.dart';
```

Note


This project has not been tested in any way. Use at your own risk.

Documentation


This data structure is intended to be used as a key-value.

**Constructor**

```dart
 BTree bTree = BTree(degree: 1000); // degree - How many keys can a node contain
```

**Insert**

```dart
btree.insert("key1", "value1");
```

**Update**

```dart
btree.update("key1", "value0");
```

**Search**

```dart
btree.search("key1"); // return "value0"
```

**Delete**

```dart
btree.delete("key1"); // Deleting key key1. The next search will result in null
```