MCPcopy Index your code
hub / github.com/apache/datasketches-rust

github.com/apache/datasketches-rust @0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.0 ↗ · + Follow
1,129 symbols 3,359 edges 87 files 433 documented · 38% updated 3d ago0.3.0 · 2026-05-18★ 1006 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Apache® DataSketches™ Core Rust Library Component

Crates.io Documentation MSRV 1.86.0 Apache 2.0 licensed Build Status

This is the core Rust component of the DataSketches library. It contains a subset of the sketching algorithms and can be accessed directly from user applications.

Note that we have parallel core library components for Java, C++, Python, and Go implementations of many of the same sketch algorithms:

Please visit the main DataSketches website for more information.

If you are interested in making contributions to this site, please see our Community page for how to contact us.

Extension points exported contracts — how you extend this code

Sealed (Interface)
Sealed trait to prevent external implementations of ThetaSketchView. [2 implementers]
datasketches/src/theta/sketch.rs
ThetaSketchView (Interface)
Read-only view for Theta sketches. This trait provides a unified input abstraction for APIs that can accept either muta [2 …
datasketches/src/theta/sketch.rs
FrequentItemValue (Interface)
Trait for serializing and deserializing frequent item values. [1 implementers]
datasketches/src/frequencies/serialization.rs
Sealed (Interface)
Sealed trait to prevent external implementations of CountMinValue.
datasketches/src/countmin/value.rs
CountMinValue (Interface)
Value type supported in a Count-Min sketch.
datasketches/src/countmin/value.rs

Core symbols most depended-on inside this repo

update
called by 295
datasketches/src/hll/list.rs
insufficient_data
called by 150
datasketches/src/codec/assert.rs
write_u8
called by 83
datasketches/src/codec/encode.rs
len
called by 77
datasketches/src/hll/container.rs
estimate
called by 60
datasketches/src/hll/union.rs
read_u8
called by 50
datasketches/src/codec/decode.rs
build
called by 39
datasketches/src/theta/sketch.rs
read_u32_le
called by 39
datasketches/src/codec/decode.rs

Shape

Function 573
Method 487
Class 52
Enum 10
Interface 7

Languages

Rust100%
Python1%

Modules by API surface

datasketches/src/theta/bit_pack.rs150 symbols
datasketches/src/theta/sketch.rs58 symbols
datasketches/src/tdigest/sketch.rs42 symbols
datasketches/src/theta/hash_table.rs41 symbols
datasketches/src/bloom/sketch.rs38 symbols
datasketches/src/hll/array8.rs34 symbols
datasketches/src/frequencies/sketch.rs31 symbols
datasketches/src/cpc/compression.rs30 symbols
datasketches/src/cpc/sketch.rs29 symbols
datasketches/src/hll/union.rs28 symbols
datasketches/src/countmin/sketch.rs28 symbols
datasketches/tests/frequencies_update_test.rs26 symbols

For agents

$ claude mcp add datasketches-rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact