|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.store.MemoryOnlyStore.BruteForceSearchManager
protected static class MemoryOnlyStore.BruteForceSearchManager
Brute force search implementation
Constructor Summary | |
---|---|
MemoryOnlyStore.BruteForceSearchManager(MemoryStore memoryStore)
Create a BruteForceSearchManager around the given memory store. |
Method Summary | |
---|---|
void |
clear(String cacheName,
int segmentId)
Clear a segment of the given cache |
Results |
executeQuery(String cacheName,
StoreQuery query,
Map<String,AttributeExtractor> extractors)
Execute a query against the given cache |
void |
move(String cacheName,
int segmentId,
String existingKey,
String newKey)
Update the unqiue key for an existing entry |
void |
put(String cacheName,
int segmentId,
String uniqueKey,
byte[] serializedKey,
Element element,
Map<String,AttributeExtractor> extractors)
Notify an element added to a segment of a given cache |
void |
remove(String cacheName,
String uniqueKey,
int segmentId)
Notify an element removed from a segment of a given cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemoryOnlyStore.BruteForceSearchManager(MemoryStore memoryStore)
memoryStore
- a MemoryStore to searchMethod Detail |
---|
public void put(String cacheName, int segmentId, String uniqueKey, byte[] serializedKey, Element element, Map<String,AttributeExtractor> extractors)
SearchManager
put
in interface SearchManager
cacheName
- cache namesegmentId
- segment of cacheuniqueKey
- unique key of elementserializedKey
- serialized form of the element keyelement
- element being added to cacheextractors
- the attribute extractors for the cachepublic Results executeQuery(String cacheName, StoreQuery query, Map<String,AttributeExtractor> extractors)
SearchManager
executeQuery
in interface SearchManager
cacheName
- cache namequery
- query to executeextractors
- defined attribute extractors for the cache
public void remove(String cacheName, String uniqueKey, int segmentId)
SearchManager
remove
in interface SearchManager
cacheName
- cache nameuniqueKey
- unique key of elementsegmentId
- segment of cachepublic void clear(String cacheName, int segmentId)
SearchManager
clear
in interface SearchManager
cacheName
- cache name to clearsegmentId
- segment of cachepublic void move(String cacheName, int segmentId, String existingKey, String newKey)
SearchManager
move
in interface SearchManager
cacheName
- cache name to updatesegmentId
- segment of cacheexistingKey
- the existing unique keynewKey
- the new unique key
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |