@Deprecated public class CachedIndex<K,E> extends Object implements LookupIndexIF<K,E>
Modifier and Type | Class and Description |
---|---|
class |
CachedIndex.Entry<A,B>
Deprecated.
|
Constructor and Description |
---|
CachedIndex(LookupIndexIF<K,E> fallback)
Deprecated.
Creates an index with the given fallback and default settings.
|
CachedIndex(LookupIndexIF<K,E> fallback,
boolean nulls)
Deprecated.
Creates an index with the given fallback, default settings and
the specified nulls setting.
|
CachedIndex(LookupIndexIF<K,E> fallback,
int max,
int size,
boolean nulls)
Deprecated.
Creates an index with the given fallback and settings.
|
Modifier and Type | Method and Description |
---|---|
E |
get(K key)
Deprecated.
|
int |
getKeyNumber()
Deprecated.
|
protected void |
prune()
Deprecated.
Removes some of the keys in the cache, keeping only the most
frequently requested keys.
|
E |
put(K key,
E value)
Deprecated.
|
E |
remove(K key)
Deprecated.
|
void |
writeReport()
Deprecated.
|
public CachedIndex(LookupIndexIF<K,E> fallback)
public CachedIndex(LookupIndexIF<K,E> fallback, boolean nulls)
public CachedIndex(LookupIndexIF<K,E> fallback, int max, int size, boolean nulls)
fallback
- The index to ask if the value is not found in the cache.max
- The max number of keys to store in the cache (default: 10000).size
- The initial size of the cache.nulls
- Store null values retrieved from fallback.