pub struct ClusterOp {
actions: ActionType,
clusters: AggType,
output: PathBuf,
}
Fields§
§actions: ActionType
§clusters: AggType
§output: PathBuf
Implementations§
Source§impl ClusterOp
impl ClusterOp
Sourcepub fn add_actions<P: AsRef<Path>>(path: P) -> ClusterOp
pub fn add_actions<P: AsRef<Path>>(path: P) -> ClusterOp
Start a new action-clustering operation.
Sourcepub fn native_works(self) -> ClusterOp
pub fn native_works(self) -> ClusterOp
Set operation to cluster with native works instead of clusters.
Sourcefn load_interactions(&self) -> Result<LazyFrame>
fn load_interactions(&self) -> Result<LazyFrame>
Load the interaction file.
Sourcefn filter(&self, frame: LazyFrame) -> LazyFrame
fn filter(&self, frame: LazyFrame) -> LazyFrame
Filter the data frame to only the actions we want
Sourcefn project_and_sort(&self, frame: LazyFrame) -> LazyFrame
fn project_and_sort(&self, frame: LazyFrame) -> LazyFrame
Project and sort (if possible) the data.
Sourcefn aggregates(&self) -> Vec<Expr>
fn aggregates(&self) -> Vec<Expr>
Aggreate the interactions.
fn maybe_integrate_ratings( &self, actions: LazyFrame, source: &LazyFrame, ) -> LazyFrame
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClusterOp
impl RefUnwindSafe for ClusterOp
impl Send for ClusterOp
impl Sync for ClusterOp
impl Unpin for ClusterOp
impl UnwindSafe for ClusterOp
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