📄 page.java
字号:
package org.garret.perst.impl;
public class Page extends LRU implements Comparable {
Page collisionChain;
int accessCount;
int writeQueueIndex;
int state;
long offs;
byte data[];
static final int psDirty = 0x01;// page has been modified
static final int psRaw = 0x02;// page is loaded from the disk
static final int psWait = 0x04;// other thread(s) wait load operation completion
public static final int pageSizeLog = 12;
public static final int pageSize = 1 << pageSizeLog;
public int compareTo(Object o)
{
long po = ((Page)o).offs;
return offs < po ? -1 : offs == po ? 0 : 1;
}
Page()
{
data = new byte[pageSize];
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -