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 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