1. Volatile Storage VS Persistent Storage

2. File I/O in C++

int main() {
		BuzzDB db; // our custom database
		// Import data from “output.txt” file
		std::ifstream inputFile("output.txt");
		
		// Variables to store data from the file
		int field1, field2;
		
		// Read pairs of integers from the file and insert them into BuzzDB
		while (inputFile >> field1 >> field2) {
				// insert each pair into the database
				db.insert(field1, field2);
		}
		
		// Perform aggregation query on the imported data
		db.selectGroupBySum();
}

3. Tuple Class

A tuple represents one record (or row) in the database. For example:

class Tuple {
public:
		// Identifier field (like a unique ID)
		int key;
		// Actual data field (value associated with the key)
		int value;
};

4. Field Class

5. Constructor Overloading in Field