Giter Club home page Giter Club logo

simpledb's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

simpledb's Issues

numPage的大小计算

(int) (file.length / pagesize)的话,不就向下取整了吗。这不就把文件最后不足一页大小的数据忽略了吗?还是应该把这些记为一页呢

关于BufferPool类中的一个问题

请问BufferPool类在实现的时候为什么要用一个HashMap<PageId, Page>呢,是因为cache里面的PageID和Page类中的pageID代表的不是一个东西吗?

怎么开始CS186?

发现我无法完整地获取课程资源,所以不知道如何开始?而且是否需要相关的操作系统知识?我是非科班的学生,只有javaweb基础

一个自学cs学生的请求

前辈,请问你有没有保留cs186的框架源码,我之前去过官网下载过,只有proj1和proj2我能够下载,其他的我都下载不了,如果前辈方便的话,能不能提供一份初始框架源码给我,不胜感激!!!1

ANT

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);
    }

即可通过重复加入表名的测试。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.