public class HoodieDataSourceInternalWriter extends Object implements org.apache.spark.sql.sources.v2.writer.DataSourceWriter
DataSourceWriter for datasource "hudi.internal" to be used in datasource implementation
of bulk insert.| Constructor and Description |
|---|
HoodieDataSourceInternalWriter(String instantTime,
org.apache.hudi.config.HoodieWriteConfig writeConfig,
org.apache.spark.sql.types.StructType structType,
org.apache.spark.sql.SparkSession sparkSession,
org.apache.hadoop.conf.Configuration configuration,
org.apache.spark.sql.sources.v2.DataSourceOptions dataSourceOptions,
boolean populateMetaFields,
boolean arePartitionRecordsSorted) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
void |
commit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
org.apache.spark.sql.sources.v2.writer.DataWriterFactory<org.apache.spark.sql.catalyst.InternalRow> |
createWriterFactory() |
void |
onDataWriterCommit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage message) |
boolean |
useCommitCoordinator() |
public HoodieDataSourceInternalWriter(String instantTime, org.apache.hudi.config.HoodieWriteConfig writeConfig, org.apache.spark.sql.types.StructType structType, org.apache.spark.sql.SparkSession sparkSession, org.apache.hadoop.conf.Configuration configuration, org.apache.spark.sql.sources.v2.DataSourceOptions dataSourceOptions, boolean populateMetaFields, boolean arePartitionRecordsSorted)
public org.apache.spark.sql.sources.v2.writer.DataWriterFactory<org.apache.spark.sql.catalyst.InternalRow> createWriterFactory()
createWriterFactory in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriterpublic boolean useCommitCoordinator()
useCommitCoordinator in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriterpublic void onDataWriterCommit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage message)
onDataWriterCommit in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriterpublic void commit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
commit in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriterpublic void abort(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
abort in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriterCopyright © 2023 The Apache Software Foundation. All rights reserved.