悉尼大学INFO1113

题意: 使用JAVA通过动态数据类型去构建数据库 解析: 数据库中的所有条目都有一个唯一的键进行标识,条目和快照按照添加的顺序从1以此增加,快照需要以特定格式写入到可读文档中;数据库能够恢复快照,将当前数据重置为快照的状态。同时数据库需要支持一些指令: BYE 清空数据库并退出 HELP 显示提示信息 LIST KEYS 显示所有的KEY值 LIST ENTRIES 显示所有最近添加的条目 LIST SNAPSHOTS 显示数据库中所有的快照 GET < key > 显示输入key值的条目 DEL < key > 删除输入key值的条目 PURGE < key > 删除输入key值的条目并清楚快照 SET < key > 设置条目的值 PUSH < key > 将值置于前面 … … 涉及知识点: 文件读写、字符串处理更多可加微信讨论微信号:Dui0772 pdf全文 INFO1113 Assignment 1 Due: September 22nd, 11:59PM AEST This assignment is worth 6% of your final assessment Task Description In this assignment we will develop a key value store database called CrunchDB in the Java programming language using dynamic data structures. All entries to the database contain a unique key which will map to a set of values. Each entry of the database is identified by a unique key string and contains a dynamically sized list of integer values. You are encouraged to ask questions on Ed using the assignments category. As with any assignment, make sure that your work is your own, and you do not share your code or solutions with other students. Working on your assignment You can work on this assignment on your own computer or the lab machines. It is important that you continually back up your assignment files onto your own machine, external drives, and in the cloud. You are encouraged to submit your assignment on Ed while you are in the process of completing it. By submitting you will obtain some feedback of your progress on the sample test cases provided. Implementation details Write a program in Java that implements CrunchDB as shown in the examples below. You can assume that our test cases will contain only valid input commands and not cause any integer overflows. Keys are case sensitive and do not contain spaces. Commands are case insensitive. Entry values are indexed from 1. Snapshots are indexed from 1 and are unique for the lifetime of the program. Keys, entries and snapshots are to be outputted in the order from most recently added to least recently added. Snapshots can be archived i

你可能感兴趣的:(悉尼大学INFO1113)