- Type Parameters:
T- the row type
R- the result type
- All Superinterfaces:
- All Known Implementing Classes:
public interface PartitioningWriter<T,R> extends java.io.CloseableA writer capable of writing files of a single type (i.e. data/delete) to multiple specs and partitions.
As opposed to
FileWriter, this interface should be implemented by writers that are not limited to writing to a single spec/partition. Implementations may internally use
FileWriters for writing to a single spec/partition.
Note that this writer can be used both for partitioned and unpartitioned tables.
void write(T row, PartitionSpec spec, StructLike partition)Writes a row to the provided spec/partition.
row- a data or delete record
spec- a partition spec
partition- a partition or null if the spec is unpartitioned