|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.cache.DocumentCacheImpl
DocumentCache implements a simple Document caching system for Collections. FIXME: Revisit cache implementation. Most probably, commons collections' ReferenceMap should be used instead of WeakHashMap.
| Nested Class Summary |
| Nested classes inherited from class org.apache.xindice.core.cache.DocumentCache |
DocumentCache.CacheKey |
| Field Summary |
| Fields inherited from interface org.apache.xindice.core.cache.DocumentCache |
BINARY, COMPRESSED, UNCOMPRESSED |
| Constructor Summary | |
DocumentCacheImpl()
|
|
| Method Summary | |
Entry |
getEntry(Collection col,
Key key)
Obtains resource entry from the cache |
Entry |
getEntryMeta(Collection col,
Key key)
Obtains resource entry metadata from cache. |
void |
putEntry(Collection col,
Key key,
int type,
Value value,
Map meta)
Stores resource entry value in the cache |
void |
putEntryMeta(Collection col,
Key key,
int type,
Map meta)
Stores resource meta entry in the cache |
void |
removeEntry(Collection col,
Key key)
Remove resource entry from the cache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DocumentCacheImpl()
| Method Detail |
public Entry getEntry(Collection col,
Key key)
DocumentCache
getEntry in interface DocumentCachecol - resource collectionkey - resource key
public Entry getEntryMeta(Collection col,
Key key)
DocumentCache
getEntryMeta in interface DocumentCachecol - resource collectionkey - resource key
public void putEntry(Collection col,
Key key,
int type,
Value value,
Map meta)
DocumentCache
putEntry in interface DocumentCachecol - resource collectionkey - resource keytype - resource type: COMPRESSED, UNCOMPRESSED, BINARYvalue - entry valuemeta - resource meta attributes map
public void putEntryMeta(Collection col,
Key key,
int type,
Map meta)
DocumentCache
putEntryMeta in interface DocumentCachecol - resource collectionkey - resource keytype - resource type: COMPRESSED, UNCOMPRESSED, BINARYmeta - resource metadata attributes map
public void removeEntry(Collection col,
Key key)
DocumentCache
removeEntry in interface DocumentCachecol - resource collectionkey - resource key
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||