FileFormatWriter Helper Object
FileFormatWriter is a Scala object that allows for writing the result of a structured query.
|
Tip
|
Enable Add the following line to
Refer to Logging. |
Writing Query Result — write Method
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
write( sparkSession: SparkSession, plan: SparkPlan, fileFormat: FileFormat, committer: FileCommitProtocol, outputSpec: OutputSpec, hadoopConf: Configuration, partitionColumns: Seq[Attribute], bucketSpec: Option[BucketSpec], statsTrackers: Seq[WriteJobStatsTracker], options: Map[String, String]): Set[String] |
write…FIXME
|
Note
|
|
executeTask Internal Method
|
1 2 3 4 5 6 7 8 9 10 11 |
executeTask( description: WriteJobDescription, sparkStageId: Int, sparkPartitionId: Int, sparkAttemptNumber: Int, committer: FileCommitProtocol, iterator: Iterator[InternalRow]): WriteTaskResult |
executeTask…FIXME
|
Note
|
executeTask is used exclusively when FileFormatWriter is requested to write the result of a structured query.
|
processStats Internal Method
|
1 2 3 4 5 6 7 |
processStats( statsTrackers: Seq[WriteJobStatsTracker], statsPerTask: Seq[Seq[WriteTaskStats]]): Unit |
processStats…FIXME
|
Note
|
processStats is used exclusively when FileFormatWriter is requested to write the result of a structured query.
|
spark技术分享