public static class ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction extends Object implements ElasticsearchSinkFunction<Tuple2<Boolean,Row>>
ActionRequest
s.Constructor and Description |
---|
ElasticsearchUpsertSinkFunction(IndexGenerator indexGenerator,
String docType,
String keyDelimiter,
String keyNullLiteral,
SerializationSchema<Row> serializationSchema,
org.elasticsearch.common.xcontent.XContentType contentType,
ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory,
int[] keyFieldIndices) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
open()
Initialization method for the function.
|
void |
process(Tuple2<Boolean,Row> element,
RuntimeContext ctx,
RequestIndexer indexer)
Process the incoming element to produce multiple
ActionsRequests . |
public ElasticsearchUpsertSinkFunction(IndexGenerator indexGenerator, String docType, String keyDelimiter, String keyNullLiteral, SerializationSchema<Row> serializationSchema, org.elasticsearch.common.xcontent.XContentType contentType, ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory, int[] keyFieldIndices)
public void open()
ElasticsearchSinkFunction
open
in interface ElasticsearchSinkFunction<Tuple2<Boolean,Row>>
public void process(Tuple2<Boolean,Row> element, RuntimeContext ctx, RequestIndexer indexer)
ElasticsearchSinkFunction
ActionsRequests
. The
produced requests should be added to the provided RequestIndexer
.process
in interface ElasticsearchSinkFunction<Tuple2<Boolean,Row>>
element
- incoming element to processctx
- runtime context containing information about the sink instanceindexer
- request indexer that ActionRequest
should be added toCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.