Class SparkPartitionedWriter

java.lang.Object
org.apache.iceberg.io.BaseTaskWriter<org.apache.spark.sql.catalyst.InternalRow>
org.apache.iceberg.io.PartitionedWriter<org.apache.spark.sql.catalyst.InternalRow>
org.apache.iceberg.spark.source.SparkPartitionedWriter
All Implemented Interfaces:
Closeable, AutoCloseable, TaskWriter<org.apache.spark.sql.catalyst.InternalRow>

public class SparkPartitionedWriter extends PartitionedWriter<org.apache.spark.sql.catalyst.InternalRow>
  • Constructor Details

  • Method Details

    • partition

      protected PartitionKey partition(org.apache.spark.sql.catalyst.InternalRow row)
      Description copied from class: PartitionedWriter
      Create a PartitionKey from the values in row.

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

      Specified by:
      partition in class PartitionedWriter<org.apache.spark.sql.catalyst.InternalRow>
      Parameters:
      row - a data row