Skip to content

Commit 85ce6cd

Browse files
Merge pull request #684 from frankmcsherry/columnar_09
Upgrade to columnar 0.9
2 parents 81adb63 + 581db53 commit 85ce6cd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ resolver = "2"
1414
edition = "2021"
1515

1616
[workspace.dependencies]
17-
columnar = "0.8"
17+
columnar = "0.9"
1818

1919
[workspace.lints.clippy]
2020
type_complexity = "allow"

timely/examples/columnar.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mod container {
154154
use columnar::bytes::{EncodeDecode, Indexed};
155155
use columnar::common::IterOwn;
156156

157-
impl<C: columnar::Container> Column<C> {
157+
impl<C: columnar::ContainerBytes> Column<C> {
158158
/// Borrows the contents no matter their representation.
159159
#[inline(always)] fn borrow(&self) -> C::Borrowed<'_> {
160160
match self {
@@ -165,7 +165,7 @@ mod container {
165165
}
166166
}
167167

168-
impl<C: columnar::Container> timely::Container for Column<C> {
168+
impl<C: columnar::ContainerBytes> timely::Container for Column<C> {
169169
fn len(&self) -> usize { self.borrow().len() }
170170
// This sets `self` to be an empty `Typed` variant, appropriate for pushing into.
171171
fn clear(&mut self) {
@@ -185,7 +185,7 @@ mod container {
185185
fn drain<'a>(&'a mut self) -> Self::DrainIter<'a> { self.borrow().into_index_iter() }
186186
}
187187

188-
impl<C: columnar::Container> timely::container::SizableContainer for Column<C> {
188+
impl<C: columnar::ContainerBytes> timely::container::SizableContainer for Column<C> {
189189
fn at_capacity(&self) -> bool {
190190
match self {
191191
Self::Typed(t) => {
@@ -213,7 +213,7 @@ mod container {
213213
}
214214
}
215215

216-
impl<C: columnar::Container> timely::dataflow::channels::ContainerBytes for Column<C> {
216+
impl<C: columnar::ContainerBytes> timely::dataflow::channels::ContainerBytes for Column<C> {
217217
fn from_bytes(bytes: timely::bytes::arc::Bytes) -> Self {
218218
// Our expectation / hope is that `bytes` is `u64` aligned and sized.
219219
// If the alignment is borked, we can relocate. IF the size is borked,
@@ -268,7 +268,7 @@ mod builder {
268268
pending: VecDeque<Column<C>>,
269269
}
270270

271-
impl<C: columnar::Container, T> timely::container::PushInto<T> for ColumnBuilder<C> where C: columnar::Push<T> {
271+
impl<C: columnar::ContainerBytes, T> timely::container::PushInto<T> for ColumnBuilder<C> where C: columnar::Push<T> {
272272
#[inline]
273273
fn push_into(&mut self, item: T) {
274274
self.current.push(item);
@@ -285,7 +285,7 @@ mod builder {
285285
}
286286

287287
use timely::container::{ContainerBuilder, LengthPreservingContainerBuilder};
288-
impl<C: columnar::Container> ContainerBuilder for ColumnBuilder<C> {
288+
impl<C: columnar::ContainerBytes> ContainerBuilder for ColumnBuilder<C> {
289289
type Container = Column<C>;
290290

291291
#[inline]
@@ -317,5 +317,5 @@ mod builder {
317317
}
318318
}
319319

320-
impl<C: columnar::Container> LengthPreservingContainerBuilder for ColumnBuilder<C> { }
320+
impl<C: columnar::ContainerBytes> LengthPreservingContainerBuilder for ColumnBuilder<C> { }
321321
}

0 commit comments

Comments
 (0)