Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle more types and fix offset bug #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jkylling
Copy link
Collaborator

Ideally, I'd like to rewrite this to have a very different interface. Something like

trait TransformArray<'a> {
  fn transform(&'a Array) -> impl Lookup<'a>
}

trait Lookup<'a> {
  type Item;
  fn get(&self, index: usize) -> Option<Self::Item>;
}

Then all the iterators converting from RecordBatch or StructArray would be extension traits on top of this trait.

Ideally, I'd like to rewrite this to have a very different interface.
Something like
```rust
trait TransformArray<'a> {
  fn transform(&'a Array) -> impl Lookup<'a>
}

trait Lookup<'a> {
  type Item;
  fn get(&self, index: usize) -> Option<Self::Item>;
}
```
Then all the iterators converting from RecordBatch or StructArray
would be extension traits on top of this trait.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant