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() |
Iterator<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 IOException
IOExceptionvoid unload(Transaction tx) throws IOException
IOExceptionvoid clear(Transaction tx) throws IOException
IOExceptionboolean containsKey(Transaction tx, Key key) throws IOException
key - IOExceptionValue remove(Transaction tx, Key key) throws IOException
key - IOExceptionValue put(Transaction tx, Key key, Value entry) throws IOException
key - entry - IOExceptionValue get(Transaction tx, Key key) throws IOException
key - IOExceptionboolean isTransient()
Iterator<Map.Entry<Key,Value>> iterator(Transaction tx) throws IOException, UnsupportedOperationException
tx - IOExceptionUnsupportedOperationExceptionCopyright © 2005–2017 FuseSource, Corp.. All rights reserved.