public static class ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction extends Object implements ElasticsearchSinkFunction<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>
ActionRequests.| 构造器和说明 |
|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 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–2019 The Apache Software Foundation. All rights reserved.