Top Description Constructors Methods
net.sf.ehcache.search.impl

public Class DynamicSearchChecker

extends Object
Class Inheritance
Imports
java.util.Collections, .HashSet, .Map, .Set, net.sf.ehcache.Element, net.sf.ehcache.search.Query, .SearchException, net.sf.ehcache.search.attribute.DynamicAttributesExtractor

Utility class for verifying dynamically extracted search attribute against "static" search configuration
Author
vfunshte

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Map<String, ? extends Object>

Returns:

map of dynamically extracted search attribute names to their values. If passed in extractor is null, map will be empty.
getSearchAttributes
(Element
cache element for which to get dynamically extracted attribute values
e
,
Set<String>
disallowed attribute names
reservedAttrs
,
DynamicAttributesExtractor
dynamic attributes extractor
extractor
)

Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DynamicSearchCheckerback to summary
public DynamicSearchChecker()

Method Detail

getSearchAttributesback to summary
public static Map<String, ? extends Object> getSearchAttributes(Element e, Set<String> reservedAttrs, DynamicAttributesExtractor extractor) throws SearchException

Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)

Parameters
e:Element

cache element for which to get dynamically extracted attribute values

reservedAttrs:Set<String>

disallowed attribute names

extractor:DynamicAttributesExtractor

dynamic attributes extractor

Returns:Map<String, ? extends Object>

map of dynamically extracted search attribute names to their values. If passed in extractor is null, map will be empty.