direntry.java

来自「用java语言简单实现数据库的初步功能」· Java 代码 · 共 41 行

JAVA
41
字号
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 + =
减小字号Ctrl + -
显示快捷键?