Class GroupedPartitionWriter<T>
java.lang.Object
org.apache.flink.connector.file.table.GroupedPartitionWriter<T>
- Type Parameters:
T- The type of the consumed records.
- All Implemented Interfaces:
PartitionWriter<T>
PartitionWriter for grouped dynamic partition inserting. It will create a new format when
partition changed.-
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
ConstructorsConstructorDescriptionGroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer) GroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, PartitionWriter.PartitionWriterListener writerListener) -
Method Summary
-
Constructor Details
-
GroupedPartitionWriter
public GroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer) -
GroupedPartitionWriter
public GroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, 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
-