| Constructor and Description |
|---|
TokenIntMap()
Constructor.
|
TokenIntMap(DataInput in)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] key,
int val)
Indexes the specified keys and values.
|
void |
read(DataInput in)
Reads the token set from the specified input.
|
protected void |
rehash()
Resizes the hash table.
|
int |
value(byte[] key)
Returns the value for the specified key.
|
void |
write(DataOutput out)
Writes the token set to the specified output.
|
public TokenIntMap()
public TokenIntMap(DataInput in) throws java.io.IOException
in - input streamjava.io.IOException - I/O exceptionpublic void read(DataInput in) throws java.io.IOException
TokenSetpublic void write(DataOutput out) throws java.io.IOException
TokenSetpublic void add(byte[] key,
int val)
key - keyval - valuepublic int value(byte[] key)
key - key to be found-1 if nothing was found