Class GrokCaptureGroup
- java.lang.Object
-
- io.streamthoughts.kafka.connect.transform.pattern.GrokCaptureGroup
-
public class GrokCaptureGroup extends Object
-
-
Constructor Summary
Constructors Constructor Description GrokCaptureGroup(String name, int[] backRefs, Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrokCaptureExtractorgetExtractor(Consumer<Object> consumer)Gets theGrokCaptureExtractorto be used for capturing that group.Stringname()Gets the name defined for the data field to capture.StringtoString()Typetype()Gets the type defined for the data field to capture.
-
-
-
Method Detail
-
type
public Type type()
Gets the type defined for the data field to capture.
-
name
public String name()
Gets the name defined for the data field to capture.
-
getExtractor
public GrokCaptureExtractor getExtractor(Consumer<Object> consumer)
Gets theGrokCaptureExtractorto be used for capturing that group.- Parameters:
consumer- theConsumerto call when a data field is captured.
-
-