public interface Index<Key,Value>
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear the index
|
boolean |
containsKey(Key key) |
void |
destroy()
Frees any extra storage that the index created.
|
Value |
get(Key key) |
int |
getIndexLocation() |
boolean |
isEmpty() |
Value |
put(Key key,
Value entry)
store the key, item
|
Value |
putIfAbsent(Key key,
Value entry)
get the value at the given key, or put it if null.
|
Value |
remove(Key key)
remove the index key
|
int |
size() |
void destroy()
void clear()
IOExceptionboolean containsKey(Key key)
key - IOExceptionValue remove(Key key)
key - IOExceptionValue put(Key key, Value entry)
key - entry - IOExceptionValue putIfAbsent(Key key, Value entry)
key - entry - IOExceptionValue get(Key key)
key - IOExceptionint size()
boolean isEmpty()
int getIndexLocation()
Copyright © 2009–2021 FuseSource, Corp.. All rights reserved.