com.taobao.common.store.journal.impl
类 OpItemHashMap
java.lang.Object
com.taobao.common.store.journal.impl.OpItemHashMap
public class OpItemHashMap
- extends Object
基于开放地址法,存储于硬盘上的HashMap
- 从以下版本开始:
- 1.0, 2009-10-20 上午11:27:07
- 作者:
- boyan
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY
- 另请参见:
- 常量字段值
OpItemHashMap
public OpItemHashMap(int capacity,
String cacheFilePath,
boolean force)
throws IOException
- 抛出:
IOException
put
public boolean put(BytesKey key,
OpItem value)
throws IOException
- 抛出:
IOException
get
public OpItem get(BytesKey key)
throws IOException
- 抛出:
IOException
remove
public OpItem remove(BytesKey key)
throws IOException
- 抛出:
IOException
close
public void close()
throws IOException
- 抛出:
IOException
iterator
public Iterator<BytesKey> iterator()
size
public int size()
Copyright © 2010–2013. All rights reserved.