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 finish_objects(self) -> Result<usize>
fn finish_objects(self) -> Result<usize>
Finish and close the target.
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
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