|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcom.alibaba.rocketmq.store.index.IndexFile
public class IndexFile
存储具体消息索引信息的文件
| 构造方法摘要 | |
|---|---|
IndexFile(String fileName,
int hashSlotNum,
int indexNum,
long endPhyOffset,
long endTimestamp)
|
|
| 方法摘要 | |
|---|---|
boolean |
destroy(long intervalForcibly)
|
void |
flush()
|
long |
getBeginTimestamp()
|
long |
getEndPhyOffset()
|
long |
getEndTimestamp()
|
String |
getFileName()
|
int |
indexKeyHashMethod(String key)
|
boolean |
isTimeMatched(long begin,
long end)
时间区间是否匹配 |
boolean |
isWriteFull()
当前索引文件是否写满 |
void |
load()
|
boolean |
putKey(String key,
long phyOffset,
long storeTimestamp)
如果返回false,表示需要创建新的索引文件 |
void |
selectPhyOffset(List<Long> phyOffsets,
String key,
int maxNum,
long begin,
long end,
boolean lock)
前提:入参时间区间在调用前已经匹配了当前索引文件的起始结束时间 |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public IndexFile(String fileName,
int hashSlotNum,
int indexNum,
long endPhyOffset,
long endTimestamp)
throws IOException
IOException| 方法详细信息 |
|---|
public String getFileName()
public void load()
public void flush()
public boolean isWriteFull()
public boolean destroy(long intervalForcibly)
public boolean putKey(String key,
long phyOffset,
long storeTimestamp)
public long getBeginTimestamp()
public long getEndTimestamp()
public long getEndPhyOffset()
public boolean isTimeMatched(long begin,
long end)
public int indexKeyHashMethod(String key)
public void selectPhyOffset(List<Long> phyOffsets,
String key,
int maxNum,
long begin,
long end,
boolean lock)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||