Package dev.vortex.spark.write
Class PartitionedVortexDataWriter
java.lang.Object
dev.vortex.spark.write.PartitionedVortexDataWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>
public final class PartitionedVortexDataWriter
extends Object
implements org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>, AutoCloseable
Writes Spark InternalRow data to Vortex files organized in Hive-style partition directories.
Supports the standard Spark partition transforms: identity, years,
months, days, hours, and bucket. For each unique combination
of evaluated transform values, a separate subdirectory is created and a dedicated
VortexDataWriter writes data within it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCommit message that aggregates results from multiple partition writers. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.write.DataWriter
currentMetricsValues, write, writeAll
-
Method Details
-
write
- Specified by:
writein interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
commit
- Specified by:
commitin interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
abort
- Specified by:
abortin interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-