public class SparkPartitionedWriter extends PartitionedWriter<org.apache.spark.sql.catalyst.InternalRow>
BaseTaskWriter.BaseEqualityDeltaWriter, BaseTaskWriter.RollingEqDeleteWriter, BaseTaskWriter.RollingFileWriter
Constructor and Description |
---|
SparkPartitionedWriter(PartitionSpec spec,
FileFormat format,
FileAppenderFactory<org.apache.spark.sql.catalyst.InternalRow> appenderFactory,
OutputFileFactory fileFactory,
FileIO io,
long targetFileSize,
Schema schema,
org.apache.spark.sql.types.StructType sparkSchema) |
Modifier and Type | Method and Description |
---|---|
protected PartitionKey |
partition(org.apache.spark.sql.catalyst.InternalRow row)
Create a PartitionKey from the values in row.
|
close, write
abort, complete, setFailure, spec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataFiles
public SparkPartitionedWriter(PartitionSpec spec, FileFormat format, FileAppenderFactory<org.apache.spark.sql.catalyst.InternalRow> appenderFactory, OutputFileFactory fileFactory, FileIO io, long targetFileSize, Schema schema, org.apache.spark.sql.types.StructType sparkSchema)
protected PartitionKey partition(org.apache.spark.sql.catalyst.InternalRow row)
PartitionedWriter
Any PartitionKey returned by this method can be reused by the implementation.
partition
in class PartitionedWriter<org.apache.spark.sql.catalyst.InternalRow>
row
- a data row