public class StarRocksSink extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.streaming.api.functions.sink.SinkFunction<String> |
sink(StarRocksSinkOptions sinkOptions)
Create a StarRocks DataStream sink, stream elements could only be String.
|
static <T> org.apache.flink.streaming.api.functions.sink.SinkFunction<T> |
sink(org.apache.flink.table.api.TableSchema flinkTableSchema,
StarRocksSinkOptions sinkOptions,
StarRocksSinkRowBuilder<T> rowDataTransformer)
Create a StarRocks DataStream sink.
|
public static <T> org.apache.flink.streaming.api.functions.sink.SinkFunction<T> sink(org.apache.flink.table.api.TableSchema flinkTableSchema,
StarRocksSinkOptions sinkOptions,
StarRocksSinkRowBuilder<T> rowDataTransformer)
Note: the objects passed to the return sink can be processed in batch and retried.
Therefore, objects can not be reused.
T - type of data in StreamRecord.flinkTableSchema - TableSchema of the all columns with DataTypesinkOptions - StarRocksSinkOptions as the document listed, such as jdbc-url, load-url, batch size and maximum retriesrowDataTransformer - StarRocksSinkRowBuilder which would be used to transform the upstream record.public static org.apache.flink.streaming.api.functions.sink.SinkFunction<String> sink(StarRocksSinkOptions sinkOptions)
Note: the objects passed to the return sink can be processed in batch and retried.
Therefore, objects can not be reused.
sinkOptions - StarRocksSinkOptions as the document listed, such as jdbc-url, load-url, batch size and maximum retriesCopyright © 2023. All rights reserved.