Struct kgdata::mapreduce::foldop::FoldOp

source ·
pub struct FoldOp<D: ParallelDataset, ID, F> {
    pub base: D,
    pub identity: ID,
    pub op: F,
}

Fields§

§base: D§identity: ID§op: F

Trait Implementations§

source§

impl<D: Clone + ParallelDataset, ID: Clone, F: Clone> Clone for FoldOp<D, ID, F>

source§

fn clone(&self) -> FoldOp<D, ID, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, D, ID, F> IntoParallelIterator for FoldOp<D, ID, F>
where D: ParallelDataset, F: Fn(T, D::Item) -> T + Sync + Send, ID: Fn() -> T + Sync + Send, T: Send,

§

type Iter = Fold<<D as IntoParallelIterator>::Iter, ID, F>

The parallel iterator type that will be created.
§

type Item = T

The type of item that the parallel iterator will produce.
source§

fn into_par_iter(self) -> Self::Iter

Converts self into a parallel iterator. Read more
source§

impl<D, T, ID, F> ParallelDataset for FoldOp<D, ID, F>
where D: ParallelDataset, F: Fn(T, D::Item) -> T + Sync + Send, ID: Fn() -> T + Sync + Send, T: Send,

source§

fn map<F, R>(self, op: F) -> MapOp<Self, F>
where F: Fn(Self::Item) -> R + Sync + Send, R: Send,

source§

fn flat_map<F, R>(self, op: F) -> FlatMapOp<Self, F>
where F: Fn(Self::Item) -> R + Sync + Send, R: IntoParallelIterator,

source§

fn filter<F>(self, op: F) -> FilterOp<Self, F>
where F: Fn(&Self::Item) -> bool + Sync,

source§

fn fold<T, ID, F>(self, identity: ID, op: F) -> FoldOp<Self, ID, F>
where F: Fn(T, Self::Item) -> T + Sync + Send, ID: Fn() -> T + Sync + Send, T: Send,

source§

fn reduce<ID, F>(self, identity: ID, op: F) -> Self::Item
where F: Fn(Self::Item, Self::Item) -> Self::Item + Sync + Send, ID: Fn() -> Self::Item + Sync + Send,

source§

fn sort_by_key<F, K>(self, op: F, ascending: bool) -> SortByKeyOp<Self, F>
where F: Fn(&Self::Item) -> K + Sync, K: Ord + Send,

source§

fn group_by<F, K>(self, key: F) -> MapDataset<K, Vec<Self::Item>>
where F: Fn(&Self::Item) -> K + Sync, K: Hash + Eq + Send,

source§

fn group_by_map<K, V, F1, F2>(self, key: F1, value: F2) -> MapDataset<K, Vec<V>>
where F1: Fn(&Self::Item) -> K + Sync, F2: Fn(&Self::Item) -> V + Sync, K: Hash + Eq + Send, V: Send,

source§

fn count(self) -> usize

source§

fn take_any(self, n: usize) -> TakeAny<Self>

source§

fn collect<C>(self) -> C
where C: FromParallelDataset<Self::Item>,

Auto Trait Implementations§

§

impl<D, ID, F> Freeze for FoldOp<D, ID, F>
where D: Freeze, F: Freeze, ID: Freeze,

§

impl<D, ID, F> RefUnwindSafe for FoldOp<D, ID, F>

§

impl<D, ID, F> Send for FoldOp<D, ID, F>
where F: Send, ID: Send,

§

impl<D, ID, F> Sync for FoldOp<D, ID, F>
where D: Sync, F: Sync, ID: Sync,

§

impl<D, ID, F> Unpin for FoldOp<D, ID, F>
where D: Unpin, F: Unpin, ID: Unpin,

§

impl<D, ID, F> UnwindSafe for FoldOp<D, ID, F>
where D: UnwindSafe, F: UnwindSafe, ID: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> Ungil for T
where T: Send,