|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.store.BruteForceSearchManager
public class BruteForceSearchManager
Brute force search implementation
| Constructor Summary | |
|---|---|
BruteForceSearchManager(Ehcache cache)
Create a BruteForceSearchManager |
|
| Method Summary | |
|---|---|
void |
clear(String cacheName,
int segmentId)
Clear a segment of the given cache |
Results |
executeQuery(StoreQuery query,
Map<String,AttributeExtractor> extractors,
DynamicAttributesExtractor dynIndexer)
Execute a query against the given cache |
Set<Attribute> |
getSearchAttributes(String cacheName)
Returns all known search attributes for cache with given name |
void |
put(String cacheName,
int segmentId,
Element element,
byte[] key,
Map<String,AttributeExtractor> extractors,
DynamicAttributesExtractor dynamicIndexer)
Notify an element added to a segment of a given cache |
void |
remove(String cacheName,
Object key,
int segmentId,
boolean isRemoval)
Notify an element removed from a segment of a given cache |
void |
setBruteForceSource(net.sf.ehcache.store.BruteForceSource bruteForceSource)
Sets the BruteForceSource to be used for search |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BruteForceSearchManager(Ehcache cache)
cache - | Method Detail |
|---|
public Results executeQuery(StoreQuery query,
Map<String,AttributeExtractor> extractors,
DynamicAttributesExtractor dynIndexer)
SearchManager
executeQuery in interface SearchManagerquery - query to executeextractors - defined attribute extractors for the cachedynIndexer - dynamic attribute extractor (if any)
public void clear(String cacheName,
int segmentId)
SearchManager
clear in interface SearchManagercacheName - cache name to clearsegmentId - segment of cache
public void put(String cacheName,
int segmentId,
Element element,
byte[] key,
Map<String,AttributeExtractor> extractors,
DynamicAttributesExtractor dynamicIndexer)
SearchManager
put in interface SearchManagercacheName - cache namesegmentId - segment of cacheelement - element being added to cachekey - serialized form of the element keyextractors - the attribute extractors for the cachedynamicIndexer - dynamic attribute extractor (if any)
public void remove(String cacheName,
Object key,
int segmentId,
boolean isRemoval)
SearchManager
remove in interface SearchManagercacheName - cache namekey - unique key of elementsegmentId - segment of cacheisRemoval - true if called as a result of actual storage engine removal (as opposed to move), false otherwisepublic Set<Attribute> getSearchAttributes(String cacheName)
SearchManager
getSearchAttributes in interface SearchManagerpublic void setBruteForceSource(net.sf.ehcache.store.BruteForceSource bruteForceSource)
bruteForceSource - the source
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||