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,
org.apache.flink.api.connector.sink2.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, waitclosepublic void open()
throws Exception
ElasticsearchEmitterpublic void emit(Map<String,Object> doc, org.apache.flink.api.connector.sink2.SinkWriter.Context context, RequestIndexer indexer)
ElasticsearchEmitterActionRequests. 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–2023 The Apache Software Foundation. All rights reserved.