|
||||||||||
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()
|
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 |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |