Package net.sf.ehcache.search.impl
Class DynamicSearchChecker
- java.lang.Object
-
- net.sf.ehcache.search.impl.DynamicSearchChecker
-
public class DynamicSearchChecker extends java.lang.ObjectUtility class for verifying dynamically extracted search attribute against "static" search configuration- Author:
- vfunshte
-
-
Constructor Summary
Constructors Constructor Description DynamicSearchChecker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,? extends java.lang.Object>getSearchAttributes(Element e, java.util.Set<java.lang.String> reservedAttrs, DynamicAttributesExtractor extractor)Extracts dynamically indexed search attributes from cache element using provided extractor, validating against reserved set of attribute names (provided by Ehcache search config)
-
-
-
Method Detail
-
getSearchAttributes
public static java.util.Map<java.lang.String,? extends java.lang.Object> getSearchAttributes(Element e, java.util.Set<java.lang.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- cache element for which to get dynamically extracted attribute valuesreservedAttrs- disallowed attribute namesextractor- dynamic attributes extractor- Returns:
- map of dynamically extracted search attribute names to their values. If passed in extractor is null, map will be empty.
- Throws:
SearchException
-
-