10#ifndef _SWATDB_RELOPSMGR_H_
11#define _SWATDB_RELOPSMGR_H_
37extern std::string relopsdir;
64 Catalog *catalog,
const char *result_path);
99 FileId rel_id, std::vector<FieldId> fields,
100 std::vector<Comp> comps, std::vector<void *> values,
122 std::vector<FieldId> outer_field_ids,
123 std::vector<FieldId> inner_field_ids,
124 std::uint32_t block_size = 0);
145 std::uint32_t num_buckets,
146 std::vector<FieldId> outer_field_ids,
147 std::vector<FieldId> inner_field_ids,
148 std::uint32_t num_threads = 0);
195 std::vector<FieldId> o_fields, std::vector<FieldId> i_fields);
202 std::vector<FieldId> fields);
Definition heapfilescanner.h:39
Definition relopsmgr.h:46
FileId _createProjectRes(Schema *rel_schema, std::vector< FieldId > fields)
int result_num
Definition relopsmgr.h:189
RelOpsManager(FileManager *file_mgr, BufferManager *buf_mgr, Catalog *catalog, const char *result_path)
Creates SwatDB Relops layer, the interface to the relational operations functionality of the DB.
FileId _createResultFile(Schema *schema)
HeapFile * join(JoinType jtype, FileId o_fid, FileId i_fid, std::vector< FieldId > outer_field_ids, std::vector< FieldId > inner_field_ids, std::uint32_t block_size=0)
Runs the Join operation using the type of join given by the argument jtype. This overloaded function ...
HeapFile * join(JoinType jtype, FileId o_fid, FileId i_fid, std::uint32_t num_buckets, std::vector< FieldId > outer_field_ids, std::vector< FieldId > inner_field_ids, std::uint32_t num_threads=0)
Runs the Join operation using the type of join given by the argument jtype. This overloaded function ...
HeapFile * project(FileId rel_id, std::vector< FieldId > fields)
Runs the Project operation.
bool checkFilesEqual(FileId file1_id, FileId file2_id)
Checks if two files have identical contents (every record in file1 also exists in file2 with the exac...
HeapFile * select(SelectType stype, FileId rel_id, std::vector< FieldId > fields, std::vector< Comp > comps, std::vector< void * > values, FileId index_id=INVALID_FILE_ID)
Runs the Select operation using the type of select given by the argument stype.
FileId _createJoinRes(FileId outer_fid, FileId inner_fid, std::vector< FieldId > o_fields, std::vector< FieldId > i_fields)
Definition relationfile.h:32
std::uint32_t FileId
Definition swatdb_types.h:33
const std::uint32_t INVALID_FILE_ID
Definition swatdb_types.h:315
JoinType
Definition swatdb_types.h:211
SelectType
Definition swatdb_types.h:201