@Internal public abstract class ElasticsearchUpsertTableSinkBase extends Object implements org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>
UpsertStreamTableSink.| Modifier and Type | Class and Description |
|---|---|
static class |
ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction
Sink function for converting upserts into Elasticsearch
ActionRequests. |
static class |
ElasticsearchUpsertTableSinkBase.Host
Entity for describing a host of Elasticsearch.
|
static interface |
ElasticsearchUpsertTableSinkBase.RequestFactory
For version-agnostic creating of
ActionRequests. |
static class |
ElasticsearchUpsertTableSinkBase.SinkOption
Keys for optional parameterization of the sink.
|
| Constructor and Description |
|---|
ElasticsearchUpsertTableSinkBase(boolean isAppendOnly,
org.apache.flink.table.api.TableSchema schema,
List<ElasticsearchUpsertTableSinkBase.Host> hosts,
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,
ActionRequestFailureHandler failureHandler,
Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions,
ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> |
configure(String[] fieldNames,
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes) |
org.apache.flink.streaming.api.datastream.DataStreamSink<?> |
consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream) |
protected abstract ElasticsearchUpsertTableSinkBase |
copy(boolean isAppendOnly,
org.apache.flink.table.api.TableSchema schema,
List<ElasticsearchUpsertTableSinkBase.Host> hosts,
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,
ActionRequestFailureHandler failureHandler,
Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions,
ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory) |
protected abstract org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> |
createSinkFunction(List<ElasticsearchUpsertTableSinkBase.Host> hosts,
ActionRequestFailureHandler failureHandler,
Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions,
ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction upsertFunction) |
void |
emitDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream) |
boolean |
equals(Object o) |
String[] |
getFieldNames() |
org.apache.flink.api.common.typeinfo.TypeInformation<?>[] |
getFieldTypes() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> |
getOutputType() |
org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> |
getRecordType() |
int |
hashCode() |
void |
setIsAppendOnly(Boolean isAppendOnly) |
void |
setKeyFields(String[] keyNames) |
public ElasticsearchUpsertTableSinkBase(boolean isAppendOnly,
org.apache.flink.table.api.TableSchema schema,
List<ElasticsearchUpsertTableSinkBase.Host> hosts,
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,
ActionRequestFailureHandler failureHandler,
Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions,
ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory)
public void setKeyFields(String[] keyNames)
setKeyFields in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public void setIsAppendOnly(Boolean isAppendOnly)
setIsAppendOnly in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.types.Row> getRecordType()
getRecordType in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public org.apache.flink.streaming.api.datastream.DataStreamSink<?> consumeDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream)
consumeDataStream in interface org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public void emitDataStream(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> dataStream)
emitDataStream in interface org.apache.flink.table.sinks.StreamTableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.flink.api.common.typeinfo.TypeInformation<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> getOutputType()
getOutputType in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>getOutputType in interface org.apache.flink.table.sinks.UpsertStreamTableSink<org.apache.flink.types.Row>public String[] getFieldNames()
getFieldNames in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.flink.api.common.typeinfo.TypeInformation<?>[] getFieldTypes()
getFieldTypes in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>public org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> configure(String[] fieldNames, org.apache.flink.api.common.typeinfo.TypeInformation<?>[] fieldTypes)
configure in interface org.apache.flink.table.sinks.TableSink<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>>protected abstract ElasticsearchUpsertTableSinkBase copy(boolean isAppendOnly, org.apache.flink.table.api.TableSchema schema, List<ElasticsearchUpsertTableSinkBase.Host> hosts, 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, ActionRequestFailureHandler failureHandler, Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions, ElasticsearchUpsertTableSinkBase.RequestFactory requestFactory)
protected abstract org.apache.flink.streaming.api.functions.sink.SinkFunction<org.apache.flink.api.java.tuple.Tuple2<Boolean,org.apache.flink.types.Row>> createSinkFunction(List<ElasticsearchUpsertTableSinkBase.Host> hosts, ActionRequestFailureHandler failureHandler, Map<ElasticsearchUpsertTableSinkBase.SinkOption,String> sinkOptions, ElasticsearchUpsertTableSinkBase.ElasticsearchUpsertSinkFunction upsertFunction)
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.