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 Types | Public Member Functions | List of all members
cpark::GroupByKeyRdd< R >::Iterator Class Reference

#include <group_by_key_rdd.h>

Inheritance diagram for cpark::GroupByKeyRdd< R >::Iterator:

Public Types

using value_type = std::pair< KeyType, std::ranges::subrange< std::ranges::iterator_t< std::vector< ValueType > > > >
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 Iterator (std::ranges::subrange< std::ranges::iterator_t< std::ranges::range_value_t< R > > > original_data, bool is_end)
 
 Iterator (bool is_end)
 
value_type operator* () const
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Detailed Description

template<concepts::KeyValueRdd R>
class cpark::GroupByKeyRdd< R >::Iterator

An Iterator that will calculate and store the group-by-key results in a shared state.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<concepts::KeyValueRdd R>
cpark::GroupByKeyRdd< R >::Iterator::Iterator ( std::ranges::subrange< std::ranges::iterator_t< std::ranges::range_value_t< R > > >  original_data,
bool  is_end 
)
inlineexplicit

Creates the iterator with

Parameters
original_dataA subrange representing the original key-value data to be grouped.
is_endWhether this iterator is an end sentinel.

◆ Iterator() [2/2]

template<concepts::KeyValueRdd R>
cpark::GroupByKeyRdd< R >::Iterator::Iterator ( bool  is_end)
inlineexplicit

Creates the iterator of empty data with

Parameters
is_endWhether this iterator is an end sentinel.

Member Function Documentation

◆ operator==()

template<concepts::KeyValueRdd R>
bool cpark::GroupByKeyRdd< R >::Iterator::operator== ( const Iterator other) const
inline

Two iterators are equal iff: they are both end sentinels, or they have the same shared data and point to the same element.


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