pub struct WorkProcessor {
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§
§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 Freeze for WorkProcessor
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