Package net.sf.ehcache.search.impl
Interface SearchManager
-
- All Known Implementing Classes:
BruteForceSearchManager
public interface SearchManagerInterface for ehcache search engine implementations- Author:
- teck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear(java.lang.String cacheName, int segmentId)Clear a segment of the given cacheResultsexecuteQuery(StoreQuery query, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors, DynamicAttributesExtractor dynamicIndexer)Execute a query against the given cachejava.util.Set<Attribute>getSearchAttributes(java.lang.String cacheName)Returns all known search attributes for cache with given namevoidput(java.lang.String cacheName, int segmentId, Element element, byte[] serializedKey, java.util.Map<java.lang.String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)Notify an element added to a segment of a given cachevoidremove(java.lang.String cacheName, java.lang.Object uniqueKey, int segmentId, boolean isRemoval)Notify an element removed from a segment of a given cache
-
-
-
Method Detail
-
executeQuery
Results executeQuery(StoreQuery query, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors, DynamicAttributesExtractor dynamicIndexer)
Execute a query against the given cache- Parameters:
query- query to executeattributeExtractors- defined attribute extractors for the cachedynamicIndexer- dynamic attribute extractor (if any)- Returns:
- search results
-
put
void put(java.lang.String cacheName, int segmentId, Element element, byte[] serializedKey, java.util.Map<java.lang.String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)Notify an element added to a segment of a given cache- Parameters:
cacheName- cache namesegmentId- segment of cacheelement- element being added to cacheserializedKey- serialized form of the element keyextractors- the attribute extractors for the cachedynamicIndexer- dynamic attribute extractor (if any)
-
remove
void remove(java.lang.String cacheName, java.lang.Object uniqueKey, int segmentId, boolean isRemoval)Notify an element removed from a segment of a given cache- Parameters:
cacheName- cache nameuniqueKey- unique key of elementsegmentId- segment of cacheisRemoval- true if called as a result of actual storage engine removal (as opposed to move), false otherwise
-
clear
void clear(java.lang.String cacheName, int segmentId)Clear a segment of the given cache- Parameters:
cacheName- cache name to clearsegmentId- segment of cache
-
getSearchAttributes
java.util.Set<Attribute> getSearchAttributes(java.lang.String cacheName)
Returns all known search attributes for cache with given name- Parameters:
cacheName-- Returns:
-
-