Coder Social home page Coder Social logo

thssdb-2023's Introduction

ThssDB-2023

ThssDB 2023

《数据库原理》2023春大作业要求

https://apache-iotdb.feishu.cn/docx/EuVyd4o04oSHzZxRtBFcfRa0nab

《数据库原理》ThssDB2023 开发指南

https://apache-iotdb.feishu.cn/docx/RHnTd3Y3tocJQSxIIJFcDmlHnDd

所有要写的部分都有todo标注; 使用antlr做词法解析和参数处理,antlr词法部分是写好的,如果不做额外内容、添加新语法就不需要再改; 如果要对某个命令做支持,首先在plan/impl下写一个extends LogicalPlan的类,然后在LogicalPlan的enum里加对应的enum; 这个类用于传递参数到实际的实现逻辑,具体实现在service/IServiceHandler里,switch getType开始; 对sql语句的解析是由antlr完成的,而每个语句返回怎样的plan、怎么包装参数需要自己实现,参见ThssDBSQLVisitor。 更进一步的操作在schema下的各个类中,其中manager是单例,负责管理所有的db。 一个database有若干table,每个table的元数据用column描述,每个column表示一列的元数据,比如类型、长度限制等,只有一列是primaryKey; 一个具体值的包装在Entry里(comparable interface),一个row含若干个entry,一个table含若干个row; 具体用b+树管理,这东西是包装好的。

thssdb-2023's People

Contributors

heartyyf avatar sylviaxu1123 avatar

Watchers

 avatar

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.