iamxpy / simpledb Goto Github PK
View Code? Open in Web Editor NEWUC Berkeley's Database class CS186: Implement A Simple Database Management System
UC Berkeley's Database class CS186: Implement A Simple Database Management System
(int) (file.length / pagesize)的话,不就向下取整了吗。这不就把文件最后不足一页大小的数据忽略了吗?还是应该把这些记为一页呢
请问BufferPool类在实现的时候为什么要用一个HashMap<PageId, Page>呢,是因为cache里面的PageID和Page类中的pageID代表的不是一个东西吗?
发现我无法完整地获取课程资源,所以不知道如何开始?而且是否需要相关的操作系统知识?我是非科班的学生,只有javaweb基础
前辈,请问你有没有保留cs186的框架源码,我之前去过官网下载过,只有proj1和proj2我能够下载,其他的我都下载不了,如果前辈方便的话,能不能提供一份初始框架源码给我,不胜感激!!!1
Ant builder is updated is not able to build.
What i need to do how should i go about
SimpleDB/CS186-proj4/src/main/java/simpledb/Catalog.java文件中不支持重复表名,它的注释意思是说如果重复加入了新的表名,那么就以你最后加入的表名为准,所以删除前面相同的表名的那个表即可,参考了你的实现方案,我的方法如下
public void addTable(DbFile file, String name, String pkeyField) {
int fileID = file.getId();
if (nameToTableID.containsKey(name)) {
dbFileHashMap.remove(fileID);
namesHashMap.remove(fileID);
pkeyFieldsHashMap.remove(fileID);
}
dbFileHashMap.put(fileID, file);
namesHashMap.put(fileID, name);
pkeyFieldsHashMap.put(fileID, pkeyField);
nameToTableID.put(name, fileID);
}
即可通过重复加入表名的测试。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.