CPARK 1.0
A light-weighted, distributed computing framework for C++ that offers a fast and general-purpose large data processing solution.
|
#include <filter_rdd.h>
Public Types | |
using | Base = BaseRdd< FilterRdd< R, Func > > |
Public Member Functions | |
constexpr | FilterRdd (const R &prev, Func func) |
constexpr | FilterRdd (const FilterRdd &)=default |
FilterRdd & | operator= (const FilterRdd &)=default |
Public Member Functions inherited from cpark::BaseRdd< FilterRdd< R, Func > > | |
BaseRdd (const BaseRdd< R > &prev, bool copy_id) | |
BaseRdd (const BaseRdd< R > &prev) | |
BaseRdd (ExecutionContext *context) | |
BaseRdd & | operator= (const BaseRdd< R > &prev) |
auto | begin () const |
auto | end () const |
ExecutionContext::RddId | id () const noexcept |
Public Attributes | |
friend | Base |
Additional Inherited Members | |
Protected Attributes inherited from cpark::BaseRdd< FilterRdd< R, Func > > | |
ExecutionContext * | context_ |
ExecutionContext::RddId | rdd_id_ |
size_t | splits_num_ |
An Rdd holding the data filtered from an old rdd by some function.
R | Type of the old Rdd. |
Func | Type of the filter function. The type of the old Rdd R 's elements should be able to invoke function Func , the invoke result must be in boolean, and the element type shouldn't change after filter. |
|
inlineconstexpr |
Main constructor of FilterRdd.
prev | Reference to previous Rdd of type R |
func | The filter function which takes an element from prev and returns a boolean value |