public class SparkPartitionedFanoutWriter extends PartitionedFanoutWriter<org.apache.spark.sql.catalyst.InternalRow>
BaseTaskWriter.BaseEqualityDeltaWriter, BaseTaskWriter.RollingEqDeleteWriter, BaseTaskWriter.RollingFileWriter
Constructor and Description |
---|
SparkPartitionedFanoutWriter(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, spec
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataFiles
public SparkPartitionedFanoutWriter(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)
PartitionedFanoutWriter
Any PartitionKey returned by this method can be reused by the implementation.
partition
in class PartitionedFanoutWriter<org.apache.spark.sql.catalyst.InternalRow>
row
- a data row