|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.store.kahadb.disk.index.HashIndex<Key,Value>
public class HashIndex<Key,Value>
BTree implementation
| Field Summary | |
|---|---|
static int |
CLOSED_STATE
|
static int |
DEFAULT_BIN_CAPACITY
|
static int |
DEFAULT_LOAD_FACTOR
|
static int |
DEFAULT_MAXIMUM_BIN_CAPACITY
|
static int |
DEFAULT_MINIMUM_BIN_CAPACITY
|
static int |
OPEN_STATE
|
| Constructor Summary | |
|---|---|
HashIndex(PageFile pageFile,
long pageId)
Constructor |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CLOSED_STATE
public static final int OPEN_STATE
public static final int DEFAULT_BIN_CAPACITY
public static final int DEFAULT_MAXIMUM_BIN_CAPACITY
public static final int DEFAULT_MINIMUM_BIN_CAPACITY
public static final int DEFAULT_LOAD_FACTOR
| Constructor Detail |
|---|
public HashIndex(PageFile pageFile,
long pageId)
throws IOException
directory - name - indexManager - numberOfBins -
IOException| Method Detail |
|---|
public void load(Transaction tx)
throws IOException
Index
load in interface Index<Key,Value>IOException
public void unload(Transaction tx)
throws IOException
Index
unload in interface Index<Key,Value>IOException
public Value get(Transaction tx,
Key key)
throws IOException
get in interface Index<Key,Value>IOException
public boolean containsKey(Transaction tx,
Key key)
throws IOException
containsKey in interface Index<Key,Value>IOException
public Value put(Transaction tx,
Key key,
Value value)
throws IOException
Index
put in interface Index<Key,Value>IOException
public Value remove(Transaction tx,
Key key)
throws IOException
Index
remove in interface Index<Key,Value>IOException
public void clear(Transaction tx)
throws IOException
Index
clear in interface Index<Key,Value>IOException
public Iterator<Map.Entry<Key,Value>> iterator(Transaction tx)
throws IOException,
UnsupportedOperationException
iterator in interface Index<Key,Value>IOException
UnsupportedOperationExceptionpublic String toString()
toString in class Object
public void store(Transaction tx,
org.apache.activemq.store.kahadb.disk.index.HashBin<Key,Value> bin)
throws IOException
IOExceptionpublic Marshaller<Key> getKeyMarshaller()
public void setKeyMarshaller(Marshaller<Key> marshaller)
setKeyMarshaller in interface Index<Key,Value>marshaller - public Marshaller<Value> getValueMarshaller()
public void setValueMarshaller(Marshaller<Value> valueMarshaller)
setValueMarshaller in interface Index<Key,Value>marshaller - public int getBinCapacity()
public void setBinCapacity(int binCapacity)
binCapacity - public boolean isTransient()
isTransient in interface Index<Key,Value>public int getLoadFactor()
public void setLoadFactor(int loadFactor)
loadFactor - the loadFactor to setpublic int setMaximumBinCapacity()
public void setMaximumBinCapacity(int maximumCapacity)
maximumCapacity - the maximumCapacity to setpublic int size(Transaction tx)
public int getActiveBins()
public long getBinPageId()
public PageFile getPageFile()
public int getBinsActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||