pub struct ReviewRow {
pub user_id: i32,
pub asin: String,
pub rating: f32,
pub timestamp: i64,
pub summary: String,
pub text: String,
}
Expand description
Structure for scanned reviews.
This data structure is serialized to reviews.parquet
in the Amazon directories.
Fields§
§user_id: i32
§asin: String
§rating: f32
§timestamp: i64
§summary: String
§text: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ReviewRow
impl<'de> Deserialize<'de> for ReviewRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl RecordWriter<ReviewRow> for &[ReviewRow]
impl RecordWriter<ReviewRow> for &[ReviewRow]
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 ReviewRow
impl RefUnwindSafe for ReviewRow
impl Send for ReviewRow
impl Sync for ReviewRow
impl Unpin for ReviewRow
impl UnwindSafe for ReviewRow
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