T
- The type of the consumed records.@Internal public class GroupedPartitionWriter<T> extends Object implements PartitionWriter<T>
PartitionWriter
for grouped dynamic partition inserting. It will create a new format when
partition changed.PartitionWriter.Context<T>, PartitionWriter.DefaultPartitionWriterListener, PartitionWriter.PartitionWriterListener
Constructor and Description |
---|
GroupedPartitionWriter(PartitionWriter.Context<T> context,
PartitionTempFileManager manager,
PartitionComputer<T> computer) |
GroupedPartitionWriter(PartitionWriter.Context<T> context,
PartitionTempFileManager manager,
PartitionComputer<T> computer,
PartitionWriter.PartitionWriterListener writerListener) |
Modifier and Type | Method and Description |
---|---|
void |
close()
End a transaction.
|
void |
write(T in)
Write a record.
|
public GroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer)
public GroupedPartitionWriter(PartitionWriter.Context<T> context, PartitionTempFileManager manager, PartitionComputer<T> computer, PartitionWriter.PartitionWriterListener writerListener)
public void write(T in) throws Exception
PartitionWriter
write
in interface PartitionWriter<T>
Exception
public void close() throws Exception
PartitionWriter
close
in interface PartitionWriter<T>
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.