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()
IOException
boolean containsKey(Key key)
key
- IOException
Value remove(Key key)
key
- IOException
Value put(Key key, Value entry)
key
- entry
- IOException
Value putIfAbsent(Key key, Value entry)
key
- entry
- IOException
Value get(Key key)
key
- IOException
int size()
boolean isEmpty()
int getIndexLocation()
Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.