net.sf.ehcache.search.impl
Class DynamicSearchChecker
java.lang.Object
net.sf.ehcache.search.impl.DynamicSearchChecker
public class DynamicSearchChecker
- extends Object
Utility class for verifying dynamically extracted search attribute against "static" search configuration
- Author:
- vfunshte
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicSearchChecker
public DynamicSearchChecker()
getSearchAttributes
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
- 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
Copyright 2001-2016, Terracotta, Inc.