public class RegexMentionsExtractor extends AbstractRegexExtensionExtractor<Map<String,Object>> implements StreamsProcessor
Activity
object to extract the @user mentions and add
them to the appropriate extensions objectModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PATTERN |
static String |
DISPLAY_KEY |
static String |
EXTENSION_KEY |
static String |
PATTERN_CONFIG_KEY |
Constructor and Description |
---|
RegexMentionsExtractor() |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
protected Map<String,Object> |
prepareObject(String extracted)
Configures the value to be persisted to the extensions object.
|
cleanUp, ensureTargetObject, getPattern, prepare, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
cleanUp, prepare
public static final String DEFAULT_PATTERN
public static final String PATTERN_CONFIG_KEY
public static final String EXTENSION_KEY
public static final String DISPLAY_KEY
public String getId()
getId
in interface StreamsOperation
protected Map<String,Object> prepareObject(String extracted)
AbstractRegexExtensionExtractor
prepareObject
in class AbstractRegexExtensionExtractor<Map<String,Object>>
extracted
- the value extracted by the regexCopyright © 2018 The Apache Software Foundation. All rights reserved.