org.apache.flume.sink.elasticsearch
Interface ElasticSearchEventSerializer
- All Superinterfaces:
- Configurable, ConfigurableComponent
- All Known Implementing Classes:
- ElasticSearchDynamicSerializer, ElasticSearchLogStashEventSerializer
public interface ElasticSearchEventSerializer
- extends Configurable, ConfigurableComponent
Interface for an event serializer which serializes the headers and body of an
event to write them to ElasticSearch. This is configurable, so any config
params required should be taken through this.
Method Summary |
org.elasticsearch.common.xcontent.XContentBuilder |
getContentBuilder(Event event)
Return an XContentBuilder made up of the serialized flume event |
charset
static final Charset charset
getContentBuilder
org.elasticsearch.common.xcontent.XContentBuilder getContentBuilder(Event event)
throws IOException
- Return an
XContentBuilder
made up of the serialized flume event
- Parameters:
event
- The flume event to serialize
- Returns:
- A
XContentBuilder
used to write to ElasticSearch
- Throws:
IOException
- If an error occurs during serialization
Copyright © 2009-2012 Apache Software Foundation. All Rights Reserved.