@Metadata(label="dataformat,transformation", title="Grok", firstVersion="3.0.0") public class GrokDataFormat extends DataFormatDefinition
Constructor and Description |
---|
GrokDataFormat() |
Modifier and Type | Method and Description |
---|---|
String |
getPattern() |
boolean |
isAllowMultipleMatchesPerLine() |
boolean |
isFlattened() |
boolean |
isNamedOnly() |
void |
setAllowMultipleMatchesPerLine(boolean allowMultipleMatchesPerLine)
If false, every line of input is matched for pattern only once.
|
void |
setFlattened(boolean flattened)
Turns on flattened mode.
|
void |
setNamedOnly(boolean namedOnly)
Whether to capture named expressions only or not (i.e.
|
void |
setPattern(String pattern)
The grok pattern to match lines of input
|
String |
toString() |
getContentTypeHeader, getDataFormat, getDataFormatName, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes
getId, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptions
public GrokDataFormat()
public String getPattern()
public void setPattern(String pattern)
public boolean isFlattened()
public void setFlattened(boolean flattened)
public boolean isAllowMultipleMatchesPerLine()
public void setAllowMultipleMatchesPerLine(boolean allowMultipleMatchesPerLine)
public boolean isNamedOnly()
public void setNamedOnly(boolean namedOnly)
Apache Camel