|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOByteArrayMap
A map of byte[] to byte[] that may be disk or network bound. This interface is not intended to be expressed by implementations supporting duplicate keys.
Method Summary | |
---|---|
boolean |
containsKey(byte[] key)
Returns true iff key is present. |
byte[] |
get(byte[] key)
Gets the byte array associated with key, or none if this key is not present. |
IOByteArrayEnumeration |
keys()
Returns a list of all keys in the hash, provided no inserts or deletes are made while the Enumeration is untraversed. |
void |
put(byte[] key,
byte[] value)
Associates the byte[] key with the byte[] value in the hash. |
boolean |
putNoReplace(byte[] key,
byte[] value)
Associates the byte[] key with the byte[] value in the hash. |
boolean |
remove(byte[] key)
Removes the key, value pair whose key is the argument. |
Method Detail |
---|
byte[] get(byte[] key) throws IOException
IOException
void put(byte[] key, byte[] value) throws IOException
IOException
boolean putNoReplace(byte[] key, byte[] value) throws IOException
IOException
boolean remove(byte[] key) throws IOException
IOException
boolean containsKey(byte[] key) throws IOException
IOException
IOByteArrayEnumeration keys() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |