SwatDB
Loading...
Searching...
No Matches
hashindexscanner.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_HASHINDEXSCANNER_H_
11#define _SWATDB_HASHINDEXSCANNER_H_
12
13
20#include <string>
21#include <vector>
22#include <mutex>
23#include "swatdb_types.h"
24
25#include "key.h"
26
27class BufferManager;
28class HashIndexFile;
29class HashBucketPage;
31
32
180
181#endif
Definition bufmgr.h:121
Definition hashbucketpagescanner.h:26
Definition hashbucketpage.h:95
Definition hashindexfile.h:71
Definition hashindexscanner.h:41
bool full_scan
Definition hashindexscanner.h:133
HashBucketPage * cur_page
Definition hashindexscanner.h:161
RecordId getNext(Key *key)
Returns RecordId of the next matching K* and sets the data part of the passed Key to the Key value of...
Key * search_key
Definition hashindexscanner.h:143
PageId cur_dir_pid
Definition hashindexscanner.h:172
PageId cur_pid
Definition hashindexscanner.h:155
~HashIndexScanner()
Destructor.
HashIndexScanner(HashIndexFile *index, Key *key_val)
Constructor for equality scan, this scan is over all K* entries with a matching key value to the pass...
HashIndexScanner(HashIndexFile *index)
Constructor for scanning all entries of the Index.
bool scan_complete
Definition hashindexscanner.h:177
RecordId getNext()
Returns RecordId of the next matching K* in the scan.
HashIndexFile * index
Definition hashindexscanner.h:128
HashBucketPageScanner * bucket_scanner
Definition hashindexscanner.h:166
BufferManager * buf_mgr
Definition hashindexscanner.h:149
Definition key.h:38
Definition swatdb_types.h:54
Definition swatdb_types.h:70