pub struct RatingRow {
pub user_id: i32,
pub asin: String,
pub rating: f32,
pub timestamp: i64,
}
Expand description
Structure for scanned ratings.
This data structure is serialized to ratings.parquet
in the Amazon directories.
Fields§
§user_id: i32
§asin: String
§rating: f32
§timestamp: i64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RatingRow
impl<'de> Deserialize<'de> for RatingRow
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<RatingRow> for &[RatingRow]
impl RecordWriter<RatingRow> for &[RatingRow]
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 RatingRow
impl RefUnwindSafe for RatingRow
impl Send for RatingRow
impl Sync for RatingRow
impl Unpin for RatingRow
impl UnwindSafe for RatingRow
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