Class SplitValueFilter
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.SplitValueFilter
-
- All Implemented Interfaces:
ValueFilter
@UnitTest public class SplitValueFilter extends java.lang.Object implements ValueFilter
splits any resolved value around matches of a regular expression (only if the value is of type String)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SPLIT_PARAM
static boolean
SPLIT_PARAM_DEFAULT_VALUE
static java.lang.String
SPLIT_REGEX_PARAM
static java.lang.String
SPLIT_REGEX_PARAM_DEFAULT_VALUE
-
Constructor Summary
Constructors Constructor Description SplitValueFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
doFilter(IndexerBatchContext batchContext, IndexedProperty indexedProperty, java.lang.Object value)
-
-
-
Field Detail
-
SPLIT_PARAM
public static final java.lang.String SPLIT_PARAM
- See Also:
- Constant Field Values
-
SPLIT_PARAM_DEFAULT_VALUE
public static final boolean SPLIT_PARAM_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
SPLIT_REGEX_PARAM
public static final java.lang.String SPLIT_REGEX_PARAM
- See Also:
- Constant Field Values
-
SPLIT_REGEX_PARAM_DEFAULT_VALUE
public static final java.lang.String SPLIT_REGEX_PARAM_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
doFilter
public java.lang.Object doFilter(IndexerBatchContext batchContext, IndexedProperty indexedProperty, java.lang.Object value)
- Specified by:
doFilter
in interfaceValueFilter
- Parameters:
batchContext
- - The batch contextindexedProperty
- - The indexed properties that should contains the Bean Id of the formatter beanvalue
- - The object to apply Split on in case in case it is of type String- Returns:
- Returns the same value Object in case it is not string and in case it is string return List of the splitted values
-
-