pub struct ReviewRecord {
pub rec_id: u32,
pub review_id: i64,
pub user_id: i32,
pub book_id: i32,
pub work_id: Option<i32>,
pub cluster: i32,
pub item_id: i32,
pub rating: Option<f32>,
pub review: String,
pub n_votes: i32,
pub added: f32,
pub updated: f32,
}
Expand description
Review records to write to the Parquet table.
Fields§
§rec_id: u32
Internal auto-genereated record identifier.
review_id: i64
Review identifier (derived from input).
user_id: i32
User identifier.
book_id: i32
GoodReads book identifier.
work_id: Option<i32>
GoodReads work identifier.
cluster: i32
Cluster identifier (from integration clustering).
item_id: i32
GoodReads “item” identifier
rating: Option<f32>
Rating associated with this review (if provided).
review: String
Review text.
n_votes: i32
Number of votes this review has received.
added: f32
Date review was added.
updated: f32
Date review was updated.
Trait Implementations§
Source§impl RecordWriter<ReviewRecord> for &[ReviewRecord]
impl RecordWriter<ReviewRecord> for &[ReviewRecord]
Source§fn write_to_row_group<W: Write + Send>(
&self,
row_group_writer: &mut SerializedRowGroupWriter<'_, W>,
) -> Result<(), ParquetError>
fn write_to_row_group<W: Write + Send>( &self, row_group_writer: &mut SerializedRowGroupWriter<'_, W>, ) -> Result<(), ParquetError>
Writes from
self
into row_group_writer
.Auto Trait Implementations§
impl Freeze for ReviewRecord
impl RefUnwindSafe for ReviewRecord
impl Send for ReviewRecord
impl Sync for ReviewRecord
impl Unpin for ReviewRecord
impl UnwindSafe for ReviewRecord
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