public class GrokRecordFormat extends AbstractStreamEventRecordFormat<co.cask.cdap.api.data.format.StructuredRecord>
schema| Constructor and Description |
|---|
GrokRecordFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPattern(oi.thekraken.grok.api.Grok grok,
String resource) |
protected void |
addPatterns(oi.thekraken.grok.api.Grok grok) |
protected void |
configure(Map<String,String> settings) |
protected String |
determinePattern(Map<String,String> settings) |
protected co.cask.cdap.api.data.schema.Schema |
getDefaultSchema() |
String |
getPattern() |
co.cask.cdap.api.data.format.StructuredRecord |
read(StreamEvent event) |
static Map<String,String> |
settings(String pattern) |
protected void |
validateSchema(co.cask.cdap.api.data.schema.Schema desiredSchema) |
getSchema, initializepublic co.cask.cdap.api.data.format.StructuredRecord read(StreamEvent event) throws co.cask.cdap.api.data.format.UnexpectedFormatException
protected co.cask.cdap.api.data.schema.Schema getDefaultSchema()
protected void validateSchema(co.cask.cdap.api.data.schema.Schema desiredSchema) throws co.cask.cdap.api.data.schema.UnsupportedTypeException
protected void addPatterns(oi.thekraken.grok.api.Grok grok)
protected void addPattern(oi.thekraken.grok.api.Grok grok,
String resource)
public String getPattern()
Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.