Class PartitionedFanoutWriter<T>

java.lang.Object
org.apache.iceberg.io.BaseTaskWriter<T>
org.apache.iceberg.io.PartitionedFanoutWriter<T>
All Implemented Interfaces:
Closeable, AutoCloseable, TaskWriter<T>
Direct Known Subclasses:
SparkPartitionedFanoutWriter

public abstract class PartitionedFanoutWriter<T> extends BaseTaskWriter<T>
  • Constructor Details

  • Method Details

    • partition

      protected abstract PartitionKey partition(T row)
      Create a PartitionKey from the values in row.

      Any PartitionKey returned by this method can be reused by the implementation.

      Parameters:
      row - a data row
    • write

      public void write(T row) throws IOException
      Description copied from interface: TaskWriter
      Write the row into the data files.
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException