|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
DocumentCache implements a simple caching system for Collection resources.
Nested Class Summary | |
static class |
DocumentCache.CacheKey
Cache key consists of collection and resource key |
Field Summary | |
static int |
BINARY
Binary resource type |
static int |
COMPRESSED
Compressed document resource type |
static int |
UNCOMPRESSED
Uncompressed document resource type |
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 |
Field Detail |
public static final int COMPRESSED
public static final int UNCOMPRESSED
public static final int BINARY
Method Detail |
public Entry getEntry(Collection col, Key key)
col
- resource collectionkey
- resource key
public Entry getEntryMeta(Collection col, Key key)
col
- resource collectionkey
- resource key
public void putEntry(Collection col, Key key, int type, Value value, Map meta)
col
- resource collectionkey
- resource keytype
- resource type: COMPRESSED, UNCOMPRESSED, BINARYvalue
- entry valuemeta
- resource meta attributes mappublic void putEntryMeta(Collection col, Key key, int type, Map meta)
col
- resource collectionkey
- resource keytype
- resource type: COMPRESSED, UNCOMPRESSED, BINARYmeta
- resource metadata attributes mappublic void removeEntry(Collection col, Key key)
col
- 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 |