Class GrokMatcher
- java.lang.Object
-
- io.streamthoughts.kafka.connect.transform.pattern.GrokMatcher
-
public class GrokMatcher extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>captures(byte[] bytes)Stringexpression()Returns the raw regex expression.GrokPatterngetGrokPattern(int i)GrokPatterngetGrokPattern(String name)org.joni.Regexregex()Returns the compiled regex expression.org.apache.kafka.connect.data.Schemaschema()StringtoString()
-
-
-
Method Detail
-
schema
public org.apache.kafka.connect.data.Schema schema()
-
getGrokPattern
public GrokPattern getGrokPattern(int i)
-
getGrokPattern
public GrokPattern getGrokPattern(String name)
-
regex
public org.joni.Regex regex()
Returns the compiled regex expression.
-
expression
public String expression()
Returns the raw regex expression.
-
captures
public Map<String,Object> captures(byte[] bytes)
- Parameters:
bytes- the text bytes to match.- Returns:
- a
Mapthat contains all named captured.
-
-