SwatDB
Loading...
Searching...
No Matches
filescan.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_FILESCAN_H_
11#define _SWATDB_FILESCAN_H_
12
17#include <string>
18#include <vector>
19#include "swatdb_types.h"
20#include "select.h"
21
22class FileManager;
23class Catalog;
24class Schema;
25class File;
26class RelationFile;
27class HeapFile;
28class HeapFileScanner;
29class Record;
30class Data;
31class Key;
32class SearchKeyFormat;
33
37class FileScan : public Select {
38
39 public:
40
50 FileScan(FileId rel_id, FileId result_id, std::vector<FieldId> fields,
51 std::vector<Comp> comps, std::vector<void *> values, Catalog *catalog);
52
57
68 void runOperation();
69
70 private:
71
72
73};
74
75#endif
Definition catalog.h:161
Definition data.h:26
Definition filemgr.h:32
Definition filescan.h:37
FileScan(FileId rel_id, FileId result_id, std::vector< FieldId > fields, std::vector< Comp > comps, std::vector< void * > values, Catalog *catalog)
Constructor for FileScan select operation.
~FileScan()
Destructor for FileScan. Deletes dynamic member variables.
void runOperation()
Runs the filescan operation. All tuples of the relations will be looped over and checked against the ...
Definition file.h:45
Definition heapfilescanner.h:39
Definition heapfile.h:76
Definition key.h:38
Definition record.h:34
Definition relationfile.h:32
Definition schema.h:37
Definition searchkeyformat.h:32
Definition select.h:35
std::vector< Comp > comps
Definition select.h:76
std::vector< FieldId > fields
Definition select.h:71
std::vector< void * > values
Definition select.h:82
std::uint32_t FileId
Definition swatdb_types.h:33