CPARK 1.0
A light-weighted, distributed computing framework for C++ that offers a fast and general-purpose large data processing solution.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cpark::Reduce< Func > Class Template Reference

#include <reduce.h>

Public Member Functions

 Reduce (Func func)
 
template<concepts::Rdd R, typename T = utils::RddElementType<R>>
requires std::invocable<Func, T, T>&& std::convertible_to<std::invoke_result_t<Func, T, T>, T>&& std::is_default_constructible_v<T>
T operator() (const R &rdd) const
 

Detailed Description

template<typename Func>
class cpark::Reduce< Func >

A class who receives a function (callable object) and calculate the reduced result of Rdd using the function.

Examples
calculate_pi.cpp, simple.cpp, and speed_check.cpp.

Constructor & Destructor Documentation

◆ Reduce()

template<typename Func >
cpark::Reduce< Func >::Reduce ( Func  func)
inlineexplicit

Initialize the Reduce class with a callable object func.

Member Function Documentation

◆ operator()()

template<typename Func >
template<concepts::Rdd R, typename T = utils::RddElementType<R>>
requires std::invocable<Func, T, T>&& std::convertible_to<std::invoke_result_t<Func, T, T>, T>&& std::is_default_constructible_v<T>
T cpark::Reduce< Func >::operator() ( const R &  rdd) const
inline

Compute the result of the Rdd rdd with the function.


The documentation for this class was generated from the following file: