public class KeyInfoArrayCache
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> KeyInfo[] |
analyze(java.lang.Class<T> t)
Convenience method to get KeyInfo array from cache and analyze class if not in cache.
|
KeyInfo[] |
get(java.lang.Class<?> clz)
Get KeyInfo array from cache.
|
double |
getHitRate()
Get cache hit rate.
|
static KeyInfoArrayCache |
getInstance()
Get singleton instance.
|
void |
put(java.lang.Class<?> clz,
KeyInfo[] kia)
Put KeyInfo array into cache.
|
void |
reset()
Reset cache.
|
public static KeyInfoArrayCache getInstance()
public KeyInfo[] get(java.lang.Class<?> clz)
clz
- class we want KeyInfo array forpublic void put(java.lang.Class<?> clz, KeyInfo[] kia)
clz
- class we have KeyInfo array forkia
- KeyInfo arraypublic double getHitRate()
public void reset()
public static <T> KeyInfo[] analyze(java.lang.Class<T> t) throws IsamException
T
- type of recordt
- classIsamException
- if problem with key