org.basex.util
Class TokenMap
java.lang.Object
org.basex.util.TokenSet
org.basex.util.TokenMap
public final class TokenMap
- extends TokenSet
This is a simple hash map, extending the even simpler
hash set
.
- Author:
- Workgroup DBIS, University of Konstanz 2005-10, ISC License, Christian Gruen
Method Summary |
void |
add(byte[] key,
byte[] val)
Indexes the specified keys and values. |
byte[] |
get(byte[] key)
Returns the value for the specified key. |
byte[] |
value(int p)
Returns the specified value. |
TokenMap
public TokenMap()
add
public void add(byte[] key,
byte[] val)
- Indexes the specified keys and values.
If the key exists, the value is updated.
- Parameters:
key
- keyval
- value
get
public byte[] get(byte[] key)
- Returns the value for the specified key.
- Parameters:
key
- key to be found
- Returns:
- value or null if nothing was found
value
public byte[] value(int p)
- Returns the specified value.
- Parameters:
p
- value index
- Returns:
- value