T- the row type
R- the result type
public interface PartitioningWriter<T,R> extends java.io.Closeable
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)
row- a data or delete record
spec- a partition spec
partition- a partition or null if the spec is unpartitioned