Skip to content

Commit

Permalink
woopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Aug 2, 2024
1 parent 5e8a189 commit d50051a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@ use re_chunk_store::external::{re_chunk, re_chunk::external::arrow2};
/// See [`Chunk::iter_component`] for more information.
#[allow(unused)]
pub fn iter_component<'a, C: re_types::Component>(
chunks: impl IntoIterator<Item = &'a Chunk> + 'a,
chunks: &'a std::borrow::Cow<'a, [Chunk]>,
timeline: Timeline,
component_name: ComponentName,
) -> impl Iterator<Item = ((TimeInt, RowId), ChunkComponentIterItem<C>)> + 'a {
chunks.into_iter().flat_map(move |chunk| {
chunks.iter().flat_map(move |chunk| {
itertools::izip!(
chunk.iter_component_indices(&timeline, &component_name),
chunk.iter_component::<C>()
Expand All @@ -335,11 +335,11 @@ pub fn iter_component<'a, C: re_types::Component>(
/// See [`Chunk::iter_primitive`] for more information.
#[allow(unused)]
pub fn iter_primitive<'a, T: arrow2::types::NativeType>(
chunks: impl IntoIterator<Item = &'a Chunk> + 'a,
chunks: &'a std::borrow::Cow<'a, [Chunk]>,
timeline: Timeline,
component_name: ComponentName,
) -> impl Iterator<Item = ((TimeInt, RowId), &'a [T])> + 'a {
chunks.into_iter().flat_map(move |chunk| {
chunks.iter().flat_map(move |chunk| {
itertools::izip!(
chunk.iter_component_indices(&timeline, &component_name),
chunk.iter_primitive::<T>(&component_name)
Expand Down

0 comments on commit d50051a

Please sign in to comment.