Struct bookdata::goodreads::interaction::IntWriter
source · 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 !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