SwatDB
Loading...
Searching...
No Matches
hashbucketpagescanner.h
Go to the documentation of this file.
1/*
2 * SwatDB
3 *
4 * @authors: See Contributors.doc for code contributors
5 *
6 * Copyright (c) 2020 Swarthmore College Computer Science Department
7 * Swarthmore PA, Professors Tia Newhall, Ameet Soni
8 */
9
10#ifndef _SWATDB_HASHBUCKETPAGESCANNER_H_
11#define _SWATDB_HASHBUCKETPAGESCANNER_H_
12
17#include <utility>
18#include "swatdb_types.h"
19#include "hashbucketpage.h"
20
21class HashBucketPage;
22
27
28 public:
33
45
50
64 std::pair<SlotId, SlotInfo> getNext();
65
76 private:
77
83
87 SlotId cur_slot;
88
89};
90
91
92
93
94#endif
Definition hashbucketpagescanner.h:26
HashBucketPageScanner(HashBucketPage *page)
Constructor.
HashBucketPage * page
Page to be scanned. The Page is pinned outside the scope of the scanner.
Definition hashbucketpagescanner.h:82
SlotId cur_slot
Current slot being scanned.
Definition hashbucketpagescanner.h:87
std::pair< SlotId, SlotInfo > getNext()
Returns pair of SlotId and SlotInfo of the next valid slot.
void reset(HashBucketPage *page)
Resets the scanner, so it could be used for another Page.
HashBucketPageScanner()
Default Constructor.
Definition hashbucketpagescanner.h:32
~HashBucketPageScanner()
Destructor.
Definition hashbucketpagescanner.h:49
Definition hashbucketpage.h:95