pub struct BookOutput {
n_books: u32,
prefix: String,
fields: FieldOutput,
ids: TableWriter<BookIds>,
isbns: TableWriter<ISBNrec>,
authors: TableWriter<AuthRec>,
}
Expand description
Output that writes books to set of Parquet files.
Fields§
§n_books: u32
§prefix: String
§fields: FieldOutput
§ids: TableWriter<BookIds>
§isbns: TableWriter<ISBNrec>
Implementations§
Source§impl BookOutput
impl BookOutput
pub fn open(prefix: &str) -> Result<BookOutput>
Trait Implementations§
Source§impl DataSink for BookOutput
impl DataSink for BookOutput
Source§impl ObjectWriter<MARCRecord> for BookOutput
impl ObjectWriter<MARCRecord> for BookOutput
Source§fn write_object(&mut self, record: MARCRecord) -> Result<()>
fn write_object(&mut self, record: MARCRecord) -> 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 BookOutput
impl !RefUnwindSafe for BookOutput
impl Send for BookOutput
impl Sync for BookOutput
impl Unpin for BookOutput
impl !UnwindSafe for BookOutput
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