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>
@Internal public class SingleDirectoryWriter<T> extends Object implements 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
Constructors Constructor Description SingleDirectoryWriter(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
End a transaction.void
write(T in)
Write a record.
-
-
-
Constructor Detail
-
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 Detail
-
write
public void write(T in) throws Exception
Description copied from interface:PartitionWriter
Write a record.- Specified by:
write
in interfacePartitionWriter<T>
- Throws:
Exception
-
close
public void close() throws Exception
Description copied from interface:PartitionWriter
End a transaction.- Specified by:
close
in interfacePartitionWriter<T>
- Throws:
Exception
-
-