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
IOException
void unload(Transaction tx) throws IOException
IOException
void clear(Transaction tx) throws IOException
IOException
boolean containsKey(Transaction tx, Key key) throws IOException
key
- IOException
Value remove(Transaction tx, Key key) throws IOException
key
- IOException
Value put(Transaction tx, Key key, Value entry) throws IOException
key
- entry
- IOException
Value get(Transaction tx, Key key) throws IOException
key
- IOException
boolean isTransient()
Iterator<Map.Entry<Key,Value>> iterator(Transaction tx) throws IOException, UnsupportedOperationException
tx
- IOException
UnsupportedOperationException
Copyright © 2005–2015. All rights reserved.