public class ElasticsearchSinkWriter extends Object implements SinkWriter<SeaTunnelRow,ElasticsearchCommitInfo,ElasticsearchSinkState>
SeaTunnelRow to Elasticsearch.SinkWriter.Context| 构造器和说明 |
|---|
ElasticsearchSinkWriter(SinkWriter.Context context,
SeaTunnelRowType seaTunnelRowType,
ReadonlyConfig config,
int maxBatchSize,
int maxRetryCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
abortPrepare() |
void |
bulkEsWithRetry(EsRestClient esRestClient,
List<String> requestEsList) |
void |
close() |
Optional<ElasticsearchCommitInfo> |
prepareCommit() |
void |
write(SeaTunnelRow element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplySchemaChange, snapshotStatepublic ElasticsearchSinkWriter(SinkWriter.Context context, SeaTunnelRowType seaTunnelRowType, ReadonlyConfig config, int maxBatchSize, int maxRetryCount)
public void write(SeaTunnelRow element)
public Optional<ElasticsearchCommitInfo> prepareCommit()
public void abortPrepare()
public void bulkEsWithRetry(EsRestClient esRestClient, List<String> requestEsList)
public void close()
throws IOException
Copyright © 2024 The Apache Software Foundation. All rights reserved.