#roaring-bitmaps #bitmap #nu #plugin

bin+lib nu_plugin_roaring

A Nushell plugin for Roaring Bitmap

4 releases

0.1.3 Apr 2, 2025
0.1.2 Mar 2, 2025
0.1.1 Jan 16, 2025
0.1.0 Jan 8, 2025

#5 in #roaring-bitmaps

Download history 131/week @ 2025-01-04 111/week @ 2025-01-11 29/week @ 2025-01-18 2/week @ 2025-02-01 1/week @ 2025-02-08 2/week @ 2025-02-22 155/week @ 2025-03-01 7/week @ 2025-03-08 111/week @ 2025-03-29 31/week @ 2025-04-05 3/week @ 2025-04-12

145 downloads per month

Apache-2.0 and maybe CC-PDDC

19KB
425 lines

crates.io docs.rs

nu_plugin_roaring

nu_plugin_roaring is a plugin for the Nushell that provides efficient bitmap operations using the Roaring Bitmap data structure.

Installation

cargo install nu_plugin_roaring
plugin add ~/.cargo/bin/nu_plugin_roaring
plugin use roaring

Usage

The plugin supports the following methods: new, len, list, contains, and serialize. Here are some examples:

  • Create a new bitmap, serialize it, and save it to a file:

    [1..5 11..<15 21] | roaring new | roaring ser | save test.rr
    
  • Import a serialized bitmap and get its length:

    open test.rr | roaring len
    
  • Import a serialized bitmap and check if it contains certain values:

    open test.rr | roaring contains 1..3
    
  • Import a serialized bitmap and list certain values:

    # List elements in the range from 1 to 15
    open test.rr | roaring list 1..15
    # List all elements
    open test.rr | roaring list
    

Dependencies

~24–53MB
~1M SLoC