|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.vajhoej.isam.KeyInfoArrayCache
public class KeyInfoArrayCache
Class KeyInfoArrayCache caches KeyInfo array objects in a singleton cache.
Method Summary | ||
---|---|---|
static
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static KeyInfoArrayCache getInstance()
public KeyInfo[] get(java.lang.Class<?> clz)
clz
- class we want KeyInfo array for
public 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
- class
IsamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |