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.
|
#include <SetCachePageIterator.h>
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 |
UserSet * | set |
std::unordered_map< PageID, FileSearchKey >::iterator | iter |
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.
SetCachePageIterator::SetCachePageIterator | ( | PageCachePtr | cache, |
UserSet * | set | ||
) |
|
virtual |
Definition at line 42 of file SetCachePageIterator.cc.
PDBPagePtr SetCachePageIterator::begin | ( | ) |
Returns the page with the smallest PageID in the input buffer.
Definition at line 44 of file SetCachePageIterator.cc.
PDBPagePtr SetCachePageIterator::end | ( | ) |
Returns the page with the largest PageID in the input buffer.
Definition at line 49 of file SetCachePageIterator.cc.
|
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.
|
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.
|
private |
Definition at line 67 of file SetCachePageIterator.h.
|
private |
Definition at line 69 of file SetCachePageIterator.h.
|
private |
Definition at line 68 of file SetCachePageIterator.h.