template<concepts::Rdd R,
typename Func,
typename T = std::invoke_result_t<Func, utils::RddElementType<R>>>
requires std::invocable<
Func, utils::RddElementType<R>>&& std::convertible_to< std::invoke_result_t<
Func, utils::RddElementType<R>>,
T>
class cpark::TransformedRdd< R, Func, T >
An Rdd holding the data transformed from an old rdd by some function.
- Template Parameters
-
| R | Type of the old Rdd. |
| Func | Type of the transformation function. |
| T | Type of the data hold in this Rdd. The type of the old Rdd R's elements should be able to invoke function Func, and the result type should be able to convert to type T. |
- Examples
- simple.cpp.