|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Index<Key,Value>
Simpler than a Map
Method Summary | |
---|---|
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 |
Method Detail |
---|
void setKeyMarshaller(Marshaller<Key> marshaller)
marshaller
- void setValueMarshaller(Marshaller<Value> marshaller)
marshaller
- void load(Transaction tx) throws java.io.IOException
java.io.IOException
void unload(Transaction tx) throws java.io.IOException
java.io.IOException
void clear(Transaction tx) throws java.io.IOException
java.io.IOException
boolean containsKey(Transaction tx, Key key) throws java.io.IOException
key
-
java.io.IOException
Value remove(Transaction tx, Key key) throws java.io.IOException
key
-
java.io.IOException
Value put(Transaction tx, Key key, Value entry) throws java.io.IOException
key
- entry
-
java.io.IOException
Value get(Transaction tx, Key key) throws java.io.IOException
key
-
java.io.IOException
boolean isTransient()
java.util.Iterator<java.util.Map.Entry<Key,Value>> iterator(Transaction tx) throws java.io.IOException, java.lang.UnsupportedOperationException
tx
-
java.io.IOException
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |