public class ElasticSearchDynamicSerializer extends Object implements ElasticSearchEventSerializer
charset
Constructor and Description |
---|
ElasticSearchDynamicSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(ComponentConfiguration conf) |
void |
configure(Context context)
Request the implementing class to (re)configure itself.
|
org.elasticsearch.common.xcontent.XContentBuilder |
getContentBuilder(Event event)
Return an
BytesStream made up of the serialized flume event |
public void configure(Context context)
Configurable
Request the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarantees on when configure might be called.
configure
in interface Configurable
public void configure(ComponentConfiguration conf)
configure
in interface ConfigurableComponent
public org.elasticsearch.common.xcontent.XContentBuilder getContentBuilder(Event event) throws IOException
ElasticSearchEventSerializer
BytesStream
made up of the serialized flume eventgetContentBuilder
in interface ElasticSearchEventSerializer
event
- The flume event to serializeBytesStream
used to write to ElasticSearchIOException
- If an error occurs during serializationCopyright © 2009-2016 Apache Software Foundation. All Rights Reserved.