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: u32
Implementations§
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 write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
fn write_all_objects<I>(&mut self, objects: I) -> Result<usize>where
I: Iterator<Item = T>,
Write an iterator full of objects.
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