public final class IndexCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexCache.CacheEntry
Cache entry data.
|
| Constructor and Description |
|---|
IndexCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] key,
int s,
long p)
Adds a new cache entry.
|
void |
delete(byte[] key)
Deletes a cached entry.
|
IndexCache.CacheEntry |
get(byte[] key)
Gets cached entry for the specified key.
|
public IndexCache.CacheEntry get(byte[] key)
key - keynull if the entry is stalepublic void add(byte[] key,
int s,
long p)
key - keys - number of index hitsp - pointer to id listpublic void delete(byte[] key)
key - key