10#ifndef _SWATDB_RELOPSMGR_H_
11#define _SWATDB_RELOPSMGR_H_
37extern std::string relopsdir;
64 Catalog *catalog,
const char *result_path);
104 FileId rel_id, std::vector<FieldId> fields,
105 std::vector<Comp> comps, std::vector<void *> values,
135 std::vector<FieldId> outer_field_ids,
136 std::vector<FieldId> inner_field_ids,
137 std::uint32_t block_size = 0);
165 std::uint32_t num_buckets,
166 std::vector<FieldId> outer_field_ids,
167 std::vector<FieldId> inner_field_ids,
168 std::uint32_t num_threads = 0);
228 std::vector<FieldId> o_fields, std::vector<FieldId> i_fields);
242 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:209
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:313
JoinType
Definition swatdb_types.h:209
SelectType
Definition swatdb_types.h:199