@Internal public class StreamingSink extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> |
compactionWriter(org.apache.flink.table.connector.ProviderContext providerContext,
org.apache.flink.streaming.api.datastream.DataStream<T> inputStream,
long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,?>> bucketsBuilder,
FileSystemFactory fsFactory,
org.apache.flink.core.fs.Path path,
CompactReader.Factory<T> readFactory,
long targetFileSize,
int parallelism)
Create a file writer with compaction operators by input stream.
|
static org.apache.flink.streaming.api.datastream.DataStreamSink<?> |
sink(org.apache.flink.table.connector.ProviderContext providerContext,
org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> writer,
org.apache.flink.core.fs.Path locationPath,
org.apache.flink.table.catalog.ObjectIdentifier identifier,
List<String> partitionKeys,
TableMetaStoreFactory msFactory,
FileSystemFactory fsFactory,
org.apache.flink.configuration.Configuration options)
Create a sink from file writer.
|
static <T> org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> |
writer(org.apache.flink.table.connector.ProviderContext providerContext,
org.apache.flink.streaming.api.datastream.DataStream<T> inputStream,
long bucketCheckInterval,
org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,?>> bucketsBuilder,
int parallelism,
List<String> partitionKeys,
org.apache.flink.configuration.Configuration conf)
Create a file writer by input stream.
|
public static <T> org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> writer(org.apache.flink.table.connector.ProviderContext providerContext, org.apache.flink.streaming.api.datastream.DataStream<T> inputStream, long bucketCheckInterval, org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,?>> bucketsBuilder, int parallelism, List<String> partitionKeys, org.apache.flink.configuration.Configuration conf)
StreamingFileSink, in
addition, it can emit PartitionCommitInfo to down stream.public static <T> org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> compactionWriter(org.apache.flink.table.connector.ProviderContext providerContext, org.apache.flink.streaming.api.datastream.DataStream<T> inputStream, long bucketCheckInterval, org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,? extends org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink.BucketsBuilder<T,String,?>> bucketsBuilder, FileSystemFactory fsFactory, org.apache.flink.core.fs.Path path, CompactReader.Factory<T> readFactory, long targetFileSize, int parallelism)
PartitionCommitInfo to down stream.public static org.apache.flink.streaming.api.datastream.DataStreamSink<?> sink(org.apache.flink.table.connector.ProviderContext providerContext,
org.apache.flink.streaming.api.datastream.DataStream<PartitionCommitInfo> writer,
org.apache.flink.core.fs.Path locationPath,
org.apache.flink.table.catalog.ObjectIdentifier identifier,
List<String> partitionKeys,
TableMetaStoreFactory msFactory,
FileSystemFactory fsFactory,
org.apache.flink.configuration.Configuration options)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.