SwatDB
Loading...
Searching...
No Matches
include
indexNLJ.h
Go to the documentation of this file.
1
2
/*
3
* SwatDB
4
*
5
* @authors: See Contributors.doc for code contributors
6
*
7
* Copyright (c) 2020, 2025 Swarthmore College Computer Science Department
8
* Swarthmore PA, Professors Tia Newhall, Ameet Soni
9
*/
10
11
// @@@@ SWATDB_ASSIGNMENT: ADDTODODATE
12
13
#ifndef _SWATDB_INDEXNLJ_H_
14
#define _SWATDB_INDEXNLJ_H_
15
16
21
#include <string>
22
#include <vector>
23
#include "
swatdb_types.h
"
24
#include "
join.h
"
25
26
class
FileManager
;
27
class
Catalog
;
28
class
Schema
;
29
class
File
;
30
class
RelationFile
;
31
class
HeapFile
;
32
class
HeapFileScanner
;
33
class
Record
;
34
class
Data
;
35
class
Key
;
36
class
SearchKeyFormat
;
37
38
// @@@@ SWATDB_ASSIGNMENT: NOTEMSG Do not modify this definition, you may add private helper methods only
39
43
class
IndexNLJ
:
public
Join
{
44
45
public
:
46
59
IndexNLJ
(
FileId
outer_id,
FileId
inner_id,
FileId
inner_index_id,
60
FileId
result_id, std::vector<FieldId>
outer_fields
,
61
std::vector<FieldId>
inner_fields
,
Catalog
*catalog);
62
70
void
runOperation
();
71
72
protected
:
73
74
/* index id */
75
HashIndexFile
*index_file;
76
77
};
78
79
#endif
Catalog
Definition
catalog.h:161
Data
Definition
data.h:26
FileManager
Definition
filemgr.h:32
File
Definition
file.h:45
HashIndexFile
Definition
hashindexfile.h:71
HeapFileScanner
Definition
heapfilescanner.h:39
HeapFile
Definition
heapfile.h:76
IndexNLJ
Definition
indexNLJ.h:43
IndexNLJ::IndexNLJ
IndexNLJ(FileId outer_id, FileId inner_id, FileId inner_index_id, FileId result_id, std::vector< FieldId > outer_fields, std::vector< FieldId > inner_fields, Catalog *catalog)
Constructor for Index Nested Loop Join operation.
IndexNLJ::runOperation
void runOperation()
Runs the operation.
Join
Definition
join.h:37
Join::inner_fields
std::vector< FieldId > inner_fields
Definition
join.h:83
Join::outer_fields
std::vector< FieldId > outer_fields
Definition
join.h:78
Key
Definition
key.h:38
Record
Definition
record.h:34
RelationFile
Definition
relationfile.h:32
Schema
Definition
schema.h:37
SearchKeyFormat
Definition
searchkeyformat.h:32
join.h
swatdb_types.h
FileId
std::uint32_t FileId
Definition
swatdb_types.h:33
Generated by
1.9.8