protected static class MemoryOnlyStore.BruteForceSearchManager extends Object implements SearchManager
| Constructor and Description |
|---|
MemoryOnlyStore.BruteForceSearchManager()
Create a BruteForceSearchManager
|
| Modifier and Type | Method and Description |
|---|---|
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 |
put(String cacheName,
int segmentId,
Element element,
Map<String,AttributeExtractor> extractors,
DynamicAttributesExtractor dynamicIndexer)
Notify an element added to a segment of a given cache
|
void |
remove(String cacheName,
Object uniqueKey,
int segmentId,
boolean isRemoval)
Notify an element removed from a segment of a given cache
|
void |
setMemoryStore(MemoryOnlyStore memoryStore)
set the memory store
|
public MemoryOnlyStore.BruteForceSearchManager()
public void setMemoryStore(MemoryOnlyStore memoryStore)
memoryStore - public void put(String cacheName, int segmentId, Element element, Map<String,AttributeExtractor> extractors, DynamicAttributesExtractor dynamicIndexer)
SearchManagerput in interface SearchManagercacheName - cache namesegmentId - segment of cacheelement - element being added to cacheextractors - the attribute extractors for the cachedynamicIndexer - dynamicIndexer dynamic attribute extractor (if any)public Results executeQuery(String cacheName, StoreQuery query, Map<String,AttributeExtractor> extractors)
SearchManagerexecuteQuery in interface SearchManagercacheName - cache namequery - query to executeextractors - defined attribute extractors for the cachepublic void remove(String cacheName, Object uniqueKey, int segmentId, boolean isRemoval)
SearchManagerremove in interface SearchManagercacheName - 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 otherwisepublic void clear(String cacheName, int segmentId)
SearchManagerclear in interface SearchManagercacheName - cache name to clearsegmentId - segment of cacheCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.