Class SingleDirectoryWriter<T>
java.lang.Object
org.apache.flink.connector.file.table.SingleDirectoryWriter<T>
- Type Parameters:
T- The type of the consumed records.
- All Implemented Interfaces:
PartitionWriter<T>
PartitionWriter for single directory writer. It just use one format to write.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.connector.file.table.PartitionWriter
PartitionWriter.Context<T>, PartitionWriter.DefaultPartitionWriterListener, PartitionWriter.PartitionWriterListener -
Constructor Summary
ConstructorsConstructorDescriptionSingleDirectoryWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, LinkedHashMap<String, String> staticPartitions) SingleDirectoryWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, LinkedHashMap<String, String> staticPartitions, PartitionWriter.PartitionWriterListener writerListener) -
Method Summary
-
Constructor Details
-
SingleDirectoryWriter
public SingleDirectoryWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, LinkedHashMap<String, String> staticPartitions) -
SingleDirectoryWriter
public SingleDirectoryWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, LinkedHashMap<String, String> staticPartitions, PartitionWriter.PartitionWriterListener writerListener)
-
-
Method Details
-
write
Description copied from interface:PartitionWriterWrite a record.- Specified by:
writein interfacePartitionWriter<T>- Throws:
Exception
-
close
Description copied from interface:PartitionWriterEnd a transaction.- Specified by:
closein interfacePartitionWriter<T>- Throws:
Exception
-