Skip to content

Commit caba960

Browse files
authored
Introduce Lens as a concept for semantic mapping of arbitrary data (#11394)
### Related * [x] Requires #11383. * [x] Requires #11456. * [x] Requires #11454. ### What This PR introduces the concept of _Lenses_ as a way to express re-interpretation and manipulation of component columns. This can, for example, be useful to attach Rerun semantics to arbitrary Arrow components that are created when loading MCAP files. For now, the only way to access the feature is via the `LensesSink`, which transforms component columns and then forwards aggregated chunks to the backing sink. > [!IMPORTANT] > Lenses are still a very experimental feature and we expect the API to change a lot in upcoming releases.
1 parent 62fcf36 commit caba960

16 files changed

+1109
-0
lines changed

Cargo.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5670,6 +5670,15 @@ version = "0.2.5"
56705670
source = "registry+https://github.com/rust-lang/crates.io-index"
56715671
checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67"
56725672

5673+
[[package]]
5674+
name = "lenses"
5675+
version = "0.26.0-alpha.1+dev"
5676+
dependencies = [
5677+
"anyhow",
5678+
"arrow",
5679+
"rerun",
5680+
]
5681+
56735682
[[package]]
56745683
name = "levenshtein_automata"
56755684
version = "0.2.1"
@@ -9326,6 +9335,7 @@ name = "re_sdk"
93269335
version = "0.26.0-alpha.1+dev"
93279336
dependencies = [
93289337
"ahash",
9338+
"arrow",
93299339
"const_format",
93309340
"crossbeam",
93319341
"document-features",

crates/top/re_sdk/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ re_types.workspace = true
6464
re_uri.workspace = true
6565

6666
ahash.workspace = true
67+
arrow.workspace = true
6768
const_format.workspace = true
6869
crossbeam.workspace = true
6970
document-features.workspace = true

0 commit comments

Comments
 (0)