Package org.basex.index
Class IndexCache
java.lang.Object
org.basex.index.IndexCache
This class caches sizes and offsets from index results.
- Author:
- BaseX Team 2005-21, BSD License, Dimitar Popov
-
Constructor Details
-
IndexCache
public IndexCache()
-
-
Method Details
-
get
Gets cached entry for the specified key.- Parameters:
key- key- Returns:
- cached entry or
nullif the entry is stale
-
add
Adds a new cache entry. If an entry with the specified key already exists, it will be updated.- Parameters:
key- keycount- number of index hitsoffset- offset to id list- Returns:
- cache entry
-
delete
public void delete(byte[] key) Deletes a cached entry.- Parameters:
key- key
-