GithubHelp home page GithubHelp logo

cs387-toydb's Introduction

toydb

###Follow the original documentation except:

  • Include both raid.h and pf.h in the main program.
  • Only use PF_GetThisPage to access pages. This function will return PFE_OK if the page is in memory or PFE_DISK if the page is being fetched from disk, otherwise an error code.
  • Use fetchPFRAID_buf(PFRAID_buf_ele* ptr) to check the status of the Page Access. This method can return PFE_INVALIDFETCH if it is an invalid identifier, PFE_FETCHED if the page has been fetched and PFE_PENDING if the page is still being fetched.
  • Call stepTime() to update the page fetch status.
  • Call cost() to get the current cost.
  • Call resetCost() to set the current cost to 0.
  • Call PF_TakeSnapshot(char ** files) to take a snpashot of the file names provded in the argument. Only one snapshot can be taken.
  • To access snapshot of a file open both the and snapshot_.
  • Call PF_ReadSnapshot on the snapshot. The page will be automatically unfixed and you need not call PF_UnfixPage.

cs387-toydb's People

Contributors

abhinav2107 avatar

Watchers

Aman Gour 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.