public class BruteForceSearchManager extends Object implements SearchManager
| Constructor and Description |
|---|
BruteForceSearchManager(Ehcache cache)
Create a BruteForceSearchManager
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public BruteForceSearchManager(Ehcache cache)
cache - public Results executeQuery(StoreQuery query, Map<String,AttributeExtractor> extractors, DynamicAttributesExtractor dynIndexer)
SearchManagerexecuteQuery in interface SearchManagerquery - query to executeextractors - defined attribute extractors for the cachedynIndexer - dynamic attribute extractor (if any)public void clear(String cacheName, int segmentId)
SearchManagerclear in interface SearchManagercacheName - cache name to clearsegmentId - segment of cachepublic void put(String cacheName, int segmentId, Element element, byte[] key, Map<String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)
SearchManagerput 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)
SearchManagerremove 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)
SearchManagergetSearchAttributes in interface SearchManagerpublic void setBruteForceSource(net.sf.ehcache.store.BruteForceSource bruteForceSource)
bruteForceSource - the sourceCopyright 2001-2021, Terracotta, Inc.