-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhash.h
More file actions
executable file
·18 lines (12 loc) · 784 Bytes
/
hash.h
File metadata and controls
executable file
·18 lines (12 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _HASH_H
#define _HASH_H
#include <iostream>
#include "dbtproj.h"
unsigned int hashFunction(record_t record, int field, unsigned int limit);
unsigned int hashWithId(record_t record, unsigned int limit);
unsigned int hashWithNum(record_t record, unsigned int limit);
unsigned int hashWithStr(record_t record, unsigned int limit);
unsigned int hashWithStrAndNum(record_t record, unsigned int limit);
unsigned int buildHashTable(std::ifstream& hash_rel_input, int field, unsigned int *capacities, block_t *buffer, unsigned int start, unsigned int memory, unsigned int *nios);
unsigned int nestedLoop(block_t *buffer, unsigned int *capacities, unsigned int output_index, char field, unsigned int memory, unsigned int *nres, unsigned int *nios, std::ofstream& output);
#endif