CPARK 1.0
A light-weighted, distributed computing framework for C++ that offers a fast and general-purpose large data processing solution.
|
#include <partition_by_rdd.h>
Public Types | |
using | Base = BaseRdd< PartitionByRdd< R, Partitioner > > |
Public Member Functions | |
PartitionByRdd (const R &prev, Partitioner partitioner) | |
PartitionByRdd (const R &prev) | |
PartitionByRdd (const PartitionByRdd &)=default | |
PartitionByRdd & | operator= (const PartitionByRdd &)=default |
Public Attributes | |
friend | Base |
Re-partition an Rdd of key-value pairs using a partitioner function into new splits.
R | Original Rdd. Its elements must be of key-value type (pair-like). |
Partitioner | A partitioner function mapping the key-type to a size_t. Each element in the Rdd whose key is mapped to i will be assigned to the i % split_num -th split in the new Rdd. |
|
inline |
Creates a PartitionByRdd based on an old Rdd prev
, using the partition function partitioner
.
|
inlineexplicit |
Creates a PartitionByRdd based on an old Rdd prev
, using the default partitioner function std::hash{}.
|
default |
Add default constructors to avoid some liter errors.