Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akshayxml/hash-join-and-sort-merge-join

Implementation of database relation join operators - Hash Join and Sort Merge Join
https://github.com/akshayxml/hash-join-and-sort-merge-join

database hash-join hash-join-algorithm join-tables relational-databases sort-merge-join

Last synced: 28 days ago
JSON representation

Implementation of database relation join operators - Hash Join and Sort Merge Join

Awesome Lists containing this project

README

        

# Hash-Join-and-Sort-Merge-Join
Implementation of database relation join operators - Hash Join and Sort Merge Join

## Implementation
Given M memory blocks and two large relations R(X,Y)and S(Y,Z). There are iterators for the following operations.
- SortMerge Join
- open()- Create sorted sublists for R and S, each of size M blocks.
- getnext()- Use 1 block for each sublist and get minimum of R & S. Joins this minimum Y value with the other table and return. Checks for B(R)+B(S) `

### Output file
`__join.txt` (Kindly note it contains only R & S base filename and not their path).

Use the generator folder to generate sample inputs.