public class MapElasticsearchEmitter extends Object implements ElasticsearchEmitter<Map<String,Object>>
Constructor and Description |
---|
MapElasticsearchEmitter(String index,
String documentType,
String idFieldName,
boolean isDynamicIndex) |
Modifier and Type | Method and Description |
---|---|
void |
emit(Map<String,Object> doc,
SinkWriter.Context context,
RequestIndexer indexer)
Process the incoming element to produce multiple
ActionRequests . |
void |
open()
Initialization method for the function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public void open() throws Exception
ElasticsearchEmitter
public void emit(Map<String,Object> doc, SinkWriter.Context context, RequestIndexer indexer)
ElasticsearchEmitter
ActionRequests
. The
produced requests should be added to the provided RequestIndexer
.emit
in interface ElasticsearchEmitter<Map<String,Object>>
doc
- incoming element to processcontext
- to access additional information about the recordindexer
- request indexer that ActionRequest
should be added toCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.