public class ParseString extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
format |
(package private) String |
key |
(package private) static org.slf4j.Logger |
log |
(package private) Parser<Map<String,String>> |
parser |
context| Constructor and Description |
|---|
ParseString() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat() |
String |
getKey() |
void |
init(ProcessContext ctx) |
Data |
process(Data input) |
void |
setFormat(String format) |
void |
setKey(String key) |
finish, resetStatepublic String getKey()
@Parameter(description="The key of the attribute which contains the string that is to be parsed.") public void setKey(String key)
key - the key to setpublic String getFormat()
@Parameter(description="The grammar string to create the parser from.") public void setFormat(String format)
format - the format to setpublic void init(ProcessContext ctx) throws Exception
init in interface StatefulProcessorinit in class AbstractProcessorExceptionAbstractProcessor.init(stream.ProcessContext)public Data process(Data input)
Processor.process(stream.Data)Copyright © 2018. All rights reserved.