Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.index » [javadoc | source]
org.apache.kahadb.index
public class: HashIndex [javadoc | source]
java.lang.Object
   org.apache.kahadb.index.HashIndex

All Implemented Interfaces:
    Index

BTree implementation
Nested Class Summary:
static class  HashIndex.Metadata   
Field Summary
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:
 public HashIndex(PageFile pageFile,
    long pageId) throws IOException 
    Constructor
    Parameters:
    directory -
    name -
    indexManager -
    numberOfBins -
    Throws:
    IOException -
Method from org.apache.kahadb.index.HashIndex Summary:
clear,   containsKey,   get,   getActiveBins,   getBinCapacity,   getBinPageId,   getBinsActive,   getKeyMarshaller,   getLoadFactor,   getPageFile,   getValueMarshaller,   indexFor,   isTransient,   iterator,   load,   put,   remove,   setBinCapacity,   setKeyMarshaller,   setLoadFactor,   setMaximumBinCapacity,   setMaximumBinCapacity,   setValueMarshaller,   size,   store,   toString,   unload
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.index.HashIndex Detail:
 public synchronized  void clear(Transaction tx) throws IOException 
 public synchronized boolean containsKey(Transaction tx,
    Key key) throws IOException 
 public synchronized Value get(Transaction tx,
    Key key) throws IOException 
 public synchronized int getActiveBins() 
 public int getBinCapacity() 
 public long getBinPageId() 
 public int getBinsActive() 
 public Marshaller<Key> getKeyMarshaller() 
 public int getLoadFactor() 
 public PageFile getPageFile() 
 public Marshaller<Value> getValueMarshaller() 
 int indexFor(Key x,
    int length) 
 public boolean isTransient() 
 public Iterator<Key, Value> iterator(Transaction tx) throws IOException, UnsupportedOperationException 
 public synchronized  void load(Transaction tx) throws IOException 
 public synchronized Value put(Transaction tx,
    Key key,
    Value value) throws IOException 
 public synchronized Value remove(Transaction tx,
    Key key) throws IOException 
 public  void setBinCapacity(int binCapacity) 
 public synchronized  void setKeyMarshaller(Marshaller<Key> marshaller) 
    Set the marshaller for key objects
 public  void setLoadFactor(int loadFactor) 
 public int setMaximumBinCapacity() 
 public  void setMaximumBinCapacity(int maximumCapacity) 
 public  void setValueMarshaller(Marshaller<Value> valueMarshaller) 
    Set the marshaller for value objects
 public synchronized int size(Transaction tx) 
 public synchronized  void store(Transaction tx,
    HashBin<Key, Value> bin) throws IOException 
 public String toString() 
 public synchronized  void unload(Transaction tx) throws IOException