-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add general
re_sorbet::SorbetSchema
(#9017)
### Related * Part of #8744 ### What Expand `re_sorbet` with `SorbetSchema` and `SorbetBatch` - a superset of the existing `ChunkSchema` and `ChunkBatch`. ### How I'm using a pretty ~ugly~ interesting approach of "fake inheritance": Define `A` -> `B` as: * `struct A` contains a `B` * `impl Deref<Target=B> for A` (upcasting) * `impl TryFrom<B> for A` (“downcasting”) * `impl From<A> for B` (“object slicing”) Using this notation: * `ChunkSchema` -> `SorbetSchema` * `ChunkBatch` -> `SorbetBatch` -> `arrow::RecordBatch` This means the `ChunkBatch` can be used as `SorbetBatch` but also as an `arrow::RecordBatch`. Note that there is no dynamic dispatch involved at all.
- Loading branch information
Showing
16 changed files
with
691 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.