Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.index » [javadoc | source]
org.apache.kahadb.index
public interface: Index [javadoc | source]

All Known Implementing Classes:
    BTreeIndex, HashIndex

Simpler than a Map
Method from org.apache.kahadb.index.Index Summary:
clear,   containsKey,   get,   isTransient,   iterator,   load,   put,   remove,   setKeyMarshaller,   setValueMarshaller,   unload
Method from org.apache.kahadb.index.Index Detail:
 public  void clear(Transaction tx) throws IOException
    clear the index
 public boolean containsKey(Transaction tx,
    Key key) throws IOException
 public Value get(Transaction tx,
    Key key) throws IOException
 public boolean isTransient()
 public Iterator<Key, Value> iterator(Transaction tx) throws IOException, UnsupportedOperationException
 public  void load(Transaction tx) throws IOException
    load indexes
 public Value put(Transaction tx,
    Key key,
    Value entry) throws IOException
    store the key, item
 public Value remove(Transaction tx,
    Key key) throws IOException
    remove the index key
 public  void setKeyMarshaller(Marshaller<Key> marshaller)
    Set the marshaller for key objects
 public  void setValueMarshaller(Marshaller<Value> marshaller)
    Set the marshaller for key objects
 public  void unload(Transaction tx) throws IOException
    unload indexes