A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::PartitionedHashSet Class Reference

#include <PartitionedHashSet.h>

+ Inheritance diagram for pdb::PartitionedHashSet:
+ Collaboration diagram for pdb::PartitionedHashSet:

Public Member Functions

 PartitionedHashSet (std::string myName, size_t pageSize)
 
 ~PartitionedHashSet ()
 
std::string getHashSetType () override
 
std::string getHashSetName ()
 
size_t getPageSize ()
 
void * getPage (unsigned int partitionId)
 
size_t getNumPages ()
 
void * addPage ()
 
void cleanup () override
 
size_t getSize () override
 

Private Attributes

std::string setName
 
std::vector< void * > partitionPages
 
size_t pageSize
 
bool isCleaned
 
pthread_mutex_t myMutex
 

Detailed Description

Definition at line 37 of file PartitionedHashSet.h.

Constructor & Destructor Documentation

pdb::PartitionedHashSet::PartitionedHashSet ( std::string  myName,
size_t  pageSize 
)
inline

Definition at line 57 of file PartitionedHashSet.h.

pdb::PartitionedHashSet::~PartitionedHashSet ( )
inline

Definition at line 65 of file PartitionedHashSet.h.

+ Here is the call graph for this function:

Member Function Documentation

void* pdb::PartitionedHashSet::addPage ( )
inline

Definition at line 108 of file PartitionedHashSet.h.

void pdb::PartitionedHashSet::cleanup ( )
inlineoverridevirtual

Implements pdb::AbstractHashSet.

Definition at line 119 of file PartitionedHashSet.h.

+ Here is the caller graph for this function:

std::string pdb::PartitionedHashSet::getHashSetName ( )
inline

Definition at line 78 of file PartitionedHashSet.h.

std::string pdb::PartitionedHashSet::getHashSetType ( )
inlineoverridevirtual

Implements pdb::AbstractHashSet.

Definition at line 73 of file PartitionedHashSet.h.

size_t pdb::PartitionedHashSet::getNumPages ( )
inline

Definition at line 99 of file PartitionedHashSet.h.

void* pdb::PartitionedHashSet::getPage ( unsigned int  partitionId)
inline

Definition at line 88 of file PartitionedHashSet.h.

size_t pdb::PartitionedHashSet::getPageSize ( )
inline

Definition at line 83 of file PartitionedHashSet.h.

size_t pdb::PartitionedHashSet::getSize ( )
inlineoverridevirtual

Implements pdb::AbstractHashSet.

Definition at line 132 of file PartitionedHashSet.h.

Member Data Documentation

bool pdb::PartitionedHashSet::isCleaned
private

Definition at line 50 of file PartitionedHashSet.h.

pthread_mutex_t pdb::PartitionedHashSet::myMutex
private

Definition at line 53 of file PartitionedHashSet.h.

size_t pdb::PartitionedHashSet::pageSize
private

Definition at line 47 of file PartitionedHashSet.h.

std::vector<void*> pdb::PartitionedHashSet::partitionPages
private

Definition at line 44 of file PartitionedHashSet.h.

std::string pdb::PartitionedHashSet::setName
private

Definition at line 41 of file PartitionedHashSet.h.


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