⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 direntry.java

📁 用java语言简单实现数据库的初步功能
💻 JAVA
字号:
package simpledb.index.btree;import simpledb.query.Constant;/** * A directory entry has two components: the number of the child block, * and the dataval of the first record in that block. * @author Edward Sciore */public class DirEntry {	private Constant dataval;	private int blocknum;	/**	 * Creates a new entry for the specified dataval and block number.	 * @param dataval the dataval	 * @param blocknum the block number	 */	public DirEntry(Constant dataval, int blocknum) {		this.dataval  = dataval;		this.blocknum = blocknum;	}	/**	 * Returns the dataval component of the entry	 * @return the dataval component of the entry	 */	public Constant dataVal() {		return dataval;	}	/**	 * Returns the block number component of the entry	 * @return the block number component of the entry	 */	public int blockNumber() {		return blocknum;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -