Constructor and Description |
---|
TokenIntMap()
Constructor.
|
TokenIntMap(DataInput in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
get(byte[] key)
Returns the value for the specified key.
|
void |
put(byte[] key,
int value)
Indexes the specified key and stores the associated value.
|
protected void |
read(DataInput in)
Reads the data structure from the specified input.
|
protected void |
rehash(int sz)
Rehashes all entries.
|
void |
write(DataOutput out)
Writes the data structure to the specified output.
|
public TokenIntMap()
public TokenIntMap(DataInput in) throws IOException
in
- input streamIOException
- I/O exceptionprotected void read(DataInput in) throws IOException
TokenSet
read
in class TokenSet
in
- input streamIOException
- I/O exceptionpublic void write(DataOutput out) throws IOException
TokenSet
write
in class TokenSet
out
- output streamIOException
- I/O exceptionpublic void put(byte[] key, int value)
key
- keyvalue
- valuepublic int get(byte[] key)
key
- key to be looked up-1
if the key was not foundCopyright © 2005–2015 BaseX Team. All rights reserved.