Constructor and Description |
---|
TokenMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Resets the data structure.
|
int |
delete(byte[] key)
Deletes the specified key.
|
byte[] |
get(byte[] key)
Returns the value for the specified key.
|
void |
put(byte[] key,
byte[] value)
Stores the specified key and value.
|
void |
put(String key,
String value)
Convenience function for adding strings, which will be converted to tokens.
|
protected void |
rehash(int sz)
Rehashes all entries.
|
String |
toString() |
Iterable<byte[]> |
values()
Returns a value iterator.
|
public final void put(byte[] key, byte[] value)
key
- keyvalue
- valuepublic final void put(String key, String value)
key
- keyvalue
- valuepublic final byte[] get(byte[] key)
key
- key to be looked upnull
if nothing was foundpublic int delete(byte[] key)
TokenSet
ASet.size
is called after
deletions, the original number of entries will be returned.public final Iterable<byte[]> values()
public final void clear()
ASet
protected final void rehash(int sz)
ASet
Copyright © 2005–2015 BaseX Team. All rights reserved.