Class SplitParamSnIndexerValueProcessor
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.SplitParamSnIndexerValueProcessor
- All Implemented Interfaces:
SnIndexerValueProcessor
Implementation of
SnIndexerValueProvider that allows to split string values.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisSplit(SnIndexerFieldWrapper fieldWrapper) process(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, Object source) protected StringresolveSplitRegex(SnIndexerFieldWrapper fieldWrapper) protected Objectsplit(SnIndexerFieldWrapper fieldWrapper, Object value, Pattern splitPattern) protected ObjectsplitToSingleValue(Object value, Pattern splitPattern) splitToStream(Object value, Pattern splitPattern)
-
Field Details
-
SPLIT_PARAM
- See Also:
-
SPLIT_PARAM_DEFAULT_VALUE
public static final boolean SPLIT_PARAM_DEFAULT_VALUE- See Also:
-
SPLIT_REGEX_PARAM
- See Also:
-
SPLIT_REGEX_PARAM_DEFAULT_VALUE
- See Also:
-
-
Constructor Details
-
SplitParamSnIndexerValueProcessor
public SplitParamSnIndexerValueProcessor()
-
-
Method Details
-
process
public Object process(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, Object source) throws SnIndexerException - Specified by:
processin interfaceSnIndexerValueProcessor- Parameters:
indexerContext- - the indexer contextfieldWrapper- - the field wrapper- Returns:
- the processed value
- Throws:
SnIndexerException
-
split
-
splitToStream
-
splitToSingleValue
-
isSplit
-
resolveSplitRegex
-