📄 direntry.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 + -