Struct bookdata::openlib::work::WorkProcessor
source · pub struct WorkProcessor {
last_id: i32,
author_ids: IdIndex<String>,
rec_writer: TableWriter<WorkRec>,
author_writer: TableWriter<WorkAuthorRec>,
subject_writer: TableWriter<WorkSubjectRec>,
}
Expand description
Process author source records into Parquet.
This must be run after the author processor.
Fields§
§last_id: i32
§rec_writer: TableWriter<WorkRec>
§subject_writer: TableWriter<WorkSubjectRec>
Implementations§
source§impl WorkProcessor
impl WorkProcessor
sourcepub fn new() -> Result<WorkProcessor>
pub fn new() -> Result<WorkProcessor>
Create a new work processor.
Trait Implementations§
source§impl ObjectWriter<Row<OLWorkRecord>> for WorkProcessor
impl ObjectWriter<Row<OLWorkRecord>> for WorkProcessor
source§fn write_object(&mut self, row: Row<OLWorkRecord>) -> Result<()>
fn write_object(&mut self, row: Row<OLWorkRecord>) -> Result<()>
Write one object.
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 WorkProcessor
impl Send for WorkProcessor
impl Sync for WorkProcessor
impl Unpin for WorkProcessor
impl !UnwindSafe for WorkProcessor
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