public static class ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction extends Object implements ElasticsearchSinkFunction<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>
ActionRequests.| Constructor and Description |
|---|
ElasticsearchUpsertSinkFunction(String index,
String docType,
String keyDelimiter,
String keyNullLiteral,
org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.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 |
process(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> element,
org.apache.flink.api.common.functions.RuntimeContext ctx,
RequestIndexer indexer)
Process the incoming element to produce multiple
ActionsRequests. |
public ElasticsearchUpsertSinkFunction(String index, String docType, String keyDelimiter, String keyNullLiteral, org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.types.Row> serializationSchema, org.elasticsearch.common.xcontent.XContentType contentType, ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory, int[] keyFieldIndices)
public void process(org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row> element, org.apache.flink.api.common.functions.RuntimeContext ctx, RequestIndexer indexer)
ElasticsearchSinkFunctionActionsRequests.
The produced requests should be added to the provided RequestIndexer.process in interface ElasticsearchSinkFunction<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>element - incoming element to processctx - runtime context containing information about the sink instanceindexer - request indexer that ActionRequest should be added toCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.