public abstract class AbstractDynamicAvroSerializer extends Object implements org.apache.flume.serialization.EventSerializer, org.apache.flume.conf.Configurable
| Modifier and Type | Field and Description |
|---|---|
protected DynamicAvroSchemaCreator |
schemaCreator |
| Constructor and Description |
|---|
AbstractDynamicAvroSerializer(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate() |
void |
afterReopen() |
void |
beforeClose() |
void |
configure(org.apache.flume.Context context) |
void |
flush() |
protected abstract Map<String,Object> |
getOrderedData(org.apache.flume.Event event) |
boolean |
supportsReopen() |
void |
write(org.apache.flume.Event event) |
protected final DynamicAvroSchemaCreator schemaCreator
public AbstractDynamicAvroSerializer(OutputStream out)
protected abstract Map<String,Object> getOrderedData(org.apache.flume.Event event) throws IOException
IOExceptionpublic void configure(org.apache.flume.Context context)
configure in interface org.apache.flume.conf.Configurablepublic void afterCreate()
throws IOException
afterCreate in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void afterReopen()
throws IOException
afterReopen in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void write(org.apache.flume.Event event)
throws IOException
write in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void flush()
throws IOException
flush in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void beforeClose()
throws IOException
beforeClose in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic boolean supportsReopen()
supportsReopen in interface org.apache.flume.serialization.EventSerializerCopyright © 2017. All rights reserved.