Class BatchSink
java.lang.Object
org.apache.flink.connector.file.table.batch.BatchSink
Helper for creating batch file sink.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.apache.flink.streaming.api.datastream.DataStreamSink<?>createBatchCompactSink(org.apache.flink.streaming.api.datastream.DataStream<CompactMessages.CoordinatorInput> dataStream, org.apache.flink.streaming.api.functions.sink.filesystem.legacy.StreamingFileSink.BucketsBuilder<T, String, ? extends org.apache.flink.streaming.api.functions.sink.filesystem.legacy.StreamingFileSink.BucketsBuilder<T, String, ?>> builder, CompactReader.Factory<T> readFactory, FileSystemFactory fsFactory, TableMetaStoreFactory metaStoreFactory, PartitionCommitPolicyFactory partitionCommitPolicyFactory, String[] partitionColumns, LinkedHashMap<String, String> staticPartitionSpec, org.apache.flink.core.fs.Path tmpPath, org.apache.flink.table.catalog.ObjectIdentifier identifier, long compactAverageSize, long compactTargetSize, boolean isToLocal, boolean overwrite, int compactParallelism, boolean compactParallelismConfigured) static org.apache.flink.streaming.api.datastream.DataStreamSink<org.apache.flink.types.Row>createBatchNoCompactSink(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> dataStream, org.apache.flink.table.connector.sink.DynamicTableSink.DataStructureConverter converter, FileSystemOutputFormat<org.apache.flink.types.Row> fileSystemOutputFormat, int parallelism, boolean parallelismConfigured)
-
Field Details
-
COORDINATOR_OP_NAME
- See Also:
-
COMPACT_OP_NAME
- See Also:
-
-
Method Details
-
createBatchNoCompactSink
public static org.apache.flink.streaming.api.datastream.DataStreamSink<org.apache.flink.types.Row> createBatchNoCompactSink(org.apache.flink.streaming.api.datastream.DataStream<org.apache.flink.table.data.RowData> dataStream, org.apache.flink.table.connector.sink.DynamicTableSink.DataStructureConverter converter, FileSystemOutputFormat<org.apache.flink.types.Row> fileSystemOutputFormat, int parallelism, boolean parallelismConfigured) -
createBatchCompactSink
public static <T> org.apache.flink.streaming.api.datastream.DataStreamSink<?> createBatchCompactSink(org.apache.flink.streaming.api.datastream.DataStream<CompactMessages.CoordinatorInput> dataStream, org.apache.flink.streaming.api.functions.sink.filesystem.legacy.StreamingFileSink.BucketsBuilder<T, String, ? extends org.apache.flink.streaming.api.functions.sink.filesystem.legacy.StreamingFileSink.BucketsBuilder<T, String, ?>> builder, CompactReader.Factory<T> readFactory, FileSystemFactory fsFactory, TableMetaStoreFactory metaStoreFactory, PartitionCommitPolicyFactory partitionCommitPolicyFactory, String[] partitionColumns, LinkedHashMap<String, String> staticPartitionSpec, org.apache.flink.core.fs.Path tmpPath, org.apache.flink.table.catalog.ObjectIdentifier identifier, long compactAverageSize, long compactTargetSize, boolean isToLocal, boolean overwrite, int compactParallelism, boolean compactParallelismConfigured)
-