public interface Index<Key,Value>
| Modifier and Type | Method and Description |
|---|---|
void |
clear(Transaction tx)
clear the index
|
boolean |
containsKey(Transaction tx,
Key key) |
Value |
get(Transaction tx,
Key key) |
boolean |
isTransient() |
java.util.Iterator<java.util.Map.Entry<Key,Value>> |
iterator(Transaction tx) |
void |
load(Transaction tx)
load indexes
|
Value |
put(Transaction tx,
Key key,
Value entry)
store the key, item
|
Value |
remove(Transaction tx,
Key key)
remove the index key
|
void |
setKeyMarshaller(Marshaller<Key> marshaller)
Set the marshaller for key objects
|
void |
setValueMarshaller(Marshaller<Value> marshaller)
Set the marshaller for key objects
|
void |
unload(Transaction tx)
unload indexes
|
void setKeyMarshaller(Marshaller<Key> marshaller)
marshaller - void setValueMarshaller(Marshaller<Value> marshaller)
marshaller - void load(Transaction tx) throws java.io.IOException
java.io.IOExceptionvoid unload(Transaction tx) throws java.io.IOException
java.io.IOExceptionvoid clear(Transaction tx) throws java.io.IOException
java.io.IOExceptionboolean containsKey(Transaction tx, Key key) throws java.io.IOException
key - java.io.IOExceptionValue remove(Transaction tx, Key key) throws java.io.IOException
key - java.io.IOExceptionValue put(Transaction tx, Key key, Value entry) throws java.io.IOException
key - entry - java.io.IOExceptionValue get(Transaction tx, Key key) throws java.io.IOException
key - java.io.IOExceptionboolean isTransient()
java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException, java.lang.UnsupportedOperationException
tx - java.io.IOExceptionjava.lang.UnsupportedOperationExceptionCopyright © 2005-2014 Red Hat, Inc.. All Rights Reserved.