pub struct IntWriter {
writer: TableWriter<IntRecord>,
users: IdIndex<String>,
review_ids: HashSet<i64>,
n_recs: u32,
}Expand description
Object writer to transform and write GoodReads interactions
Fields§
§writer: TableWriter<IntRecord>§users: IdIndex<String>§review_ids: HashSet<i64>§n_recs: u32Implementations§
Trait Implementations§
Source§impl ObjectWriter<RawInteraction> for IntWriter
impl ObjectWriter<RawInteraction> for IntWriter
Source§fn write_object(&mut self, row: RawInteraction) -> Result<()>
fn write_object(&mut self, row: RawInteraction) -> Result<()>
Write a single interaction to the output
Source§fn finish_objects(self) -> Result<usize>
fn finish_objects(self) -> Result<usize>
Finish and close the target.
Auto Trait Implementations§
impl Freeze for IntWriter
impl !RefUnwindSafe for IntWriter
impl Send for IntWriter
impl Sync for IntWriter
impl Unpin for IntWriter
impl !UnwindSafe for IntWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more