Struct bookdata::marc::book_fields::BookOutput
source · 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 !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