|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.frontend.indexbrowser.lucene.MCRIndexBrowserCache
public class MCRIndexBrowserCache
Caches index browser entries in a hash table. Each object type gets an entry in the table. The value of an entry is a MCRCache. This cache again creates new entries for different search and modes. So the cache key is: object index # search # mode
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
MCRIndexBrowserCache()
|
|
| Method Summary | |
|---|---|
protected static MCRCache |
addIndexCacheToHashtable(String index)
Adds a new MCRCache to the hash table. |
static void |
addToCache(MCRIndexBrowserIncomingData browseData,
String index,
List<MCRIndexBrowserEntry> listToCache)
Add a new list of index browser entries to the cache. |
static void |
deleteIndexCacheFromHashtable(String objectType)
Deletes a whole MCRCache from the hash table. |
protected static String |
getCacheKey(String index,
MCRIndexBrowserIncomingData browseData)
Returns the cache key from the incoming browser data. |
static List<MCRIndexBrowserEntry> |
getFromCache(String index,
MCRIndexBrowserIncomingData browseData)
Returns the cached index browser list. |
protected static MCRCache |
getIndexCache(String index)
Returns the MCRCache from the hash table by the given index name. |
static boolean |
isCached(String index,
MCRIndexBrowserIncomingData browseData)
Checks if a hash table entry with the specified index exists. |
static boolean |
isInHashtable(String key)
Checks if the entry exists in the hash table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger LOGGER
| Constructor Detail |
|---|
public MCRIndexBrowserCache()
| Method Detail |
|---|
public static void addToCache(MCRIndexBrowserIncomingData browseData,
String index,
List<MCRIndexBrowserEntry> listToCache)
listToCache - a list to cacheprotected static MCRCache addIndexCacheToHashtable(String index)
index - the key of the entry.public static void deleteIndexCacheFromHashtable(String objectType)
objectType - the object type which has to be removed
public static List<MCRIndexBrowserEntry> getFromCache(String index,
MCRIndexBrowserIncomingData browseData)
protected static MCRCache getIndexCache(String index)
index - the index name of the specific index browser
protected static String getCacheKey(String index,
MCRIndexBrowserIncomingData browseData)
public static boolean isCached(String index,
MCRIndexBrowserIncomingData browseData)
public static boolean isInHashtable(String key)
key - the key which will be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||