ehcache

net.sf.ehcache.search.impl
Class DynamicSearchChecker

java.lang.Object
  extended by 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

Constructor Summary
DynamicSearchChecker()
           
 
Method Summary
static Map<String,? extends Object> getSearchAttributes(Element e, Set<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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicSearchChecker

public DynamicSearchChecker()
Method Detail

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 values
reservedAttrs - disallowed attribute names
extractor - 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

ehcache

Copyright 2001-2016, Terracotta, Inc.