|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.index.IndexCache
public final class IndexCache
This class caches sizes and pointers from index results.
Constructor Summary | |
---|---|
IndexCache()
|
Method Summary | |
---|---|
IndexEntry |
add(byte[] key,
int s,
long p)
Adds a new cache entry. |
void |
delete(byte[] key)
Deletes a cached entry. |
IndexEntry |
get(byte[] key)
Gets cached entry for the specified key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexCache()
Method Detail |
---|
public IndexEntry get(byte[] key)
key
- key
null
if the entry is stalepublic IndexEntry add(byte[] key, int s, long p)
key
- keys
- number of index hitsp
- pointer to id list
public void delete(byte[] key)
key
- key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |