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
SetCachePageIterator Class Reference

#include <SetCachePageIterator.h>

+ Inheritance diagram for SetCachePageIterator:
+ Collaboration diagram for SetCachePageIterator:

Public Member Functions

 SetCachePageIterator (PageCachePtr cache, UserSet *set)
 
virtual ~SetCachePageIterator ()
 
PDBPagePtr begin ()
 
PDBPagePtr end ()
 
PDBPagePtr next () override
 
bool hasNext () override
 
- Public Member Functions inherited from PageIteratorInterface
virtual ~PageIteratorInterface ()
 

Private Attributes

PageCachePtr cache
 
UserSetset
 
std::unordered_map< PageID,
FileSearchKey >::iterator 
iter
 

Detailed Description

This class implements an iterator to all dirty pages stored in PageCache that hasn't been flushed ever for a given set.

Definition at line 38 of file SetCachePageIterator.h.

Constructor & Destructor Documentation

SetCachePageIterator::SetCachePageIterator ( PageCachePtr  cache,
UserSet set 
)

Definition at line 35 of file SetCachePageIterator.cc.

+ Here is the call graph for this function:

SetCachePageIterator::~SetCachePageIterator ( )
virtual

Definition at line 42 of file SetCachePageIterator.cc.

Member Function Documentation

PDBPagePtr SetCachePageIterator::begin ( )

Returns the page with the smallest PageID in the input buffer.

Definition at line 44 of file SetCachePageIterator.cc.

+ Here is the call graph for this function:

PDBPagePtr SetCachePageIterator::end ( )

Returns the page with the largest PageID in the input buffer.

Definition at line 49 of file SetCachePageIterator.cc.

+ Here is the call graph for this function:

bool SetCachePageIterator::hasNext ( )
overridevirtual

If there is more pages in the input buffer, return true, else, return false.

Implements PageIteratorInterface.

Definition at line 103 of file SetCachePageIterator.cc.

+ Here is the call graph for this function:

PDBPagePtr SetCachePageIterator::next ( )
overridevirtual

Returns the next page in the input buffer. If there is no more page, returns nullptr.

Implements PageIteratorInterface.

Definition at line 54 of file SetCachePageIterator.cc.

+ Here is the call graph for this function:

Member Data Documentation

PageCachePtr SetCachePageIterator::cache
private

Definition at line 67 of file SetCachePageIterator.h.

std::unordered_map<PageID, FileSearchKey>::iterator SetCachePageIterator::iter
private

Definition at line 69 of file SetCachePageIterator.h.

UserSet* SetCachePageIterator::set
private

Definition at line 68 of file SetCachePageIterator.h.


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