public final class IndexCache extends Object
Constructor and Description |
---|
IndexCache() |
Modifier and Type | Method and Description |
---|---|
IndexEntry |
add(byte[] key,
int sz,
long off)
Adds a new cache entry.
|
void |
delete(byte[] key)
Deletes a cached entry.
|
IndexEntry |
get(byte[] key)
Gets cached entry for the specified key.
|
public IndexEntry get(byte[] key)
key
- keynull
if the entry is stalepublic IndexEntry add(byte[] key, int sz, long off)
key
- keysz
- number of index hitsoff
- offset to id listpublic void delete(byte[] key)
key
- keyCopyright © 2005–2015 BaseX Team. All rights reserved.