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

字段摘要
static int DEFAULT_CAPACITY
           
 
构造方法摘要
OpItemHashMap(int capacity, String cacheFilePath, boolean force)
           
 
方法摘要
 void close()
           
 OpItem get(BytesKey key)
           
 Iterator<BytesKey> iterator()
           
 boolean put(BytesKey key, OpItem value)
           
 OpItem remove(BytesKey key)
           
 int size()
           
 
从类 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.