-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
914ee37
commit df98b4d
Showing
4 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
# MicroBatchWriterFactory | ||
|
||
`MicroBatchWriterFactory` is...FIXME | ||
`MicroBatchWriterFactory` is a `DataWriterFactory` ([Spark SQL]({{ book.spark_sql }}/connector/DataWriterFactory)). | ||
|
||
## Creating Instance | ||
|
||
`MicroBatchWriterFactory` takes the following to be created: | ||
|
||
* <span id="epochId"> Epoch ID | ||
* <span id="streamingWriterFactory"> [StreamingDataWriterFactory](../StreamingDataWriterFactory.md) | ||
|
||
`MicroBatchWriterFactory` is created when: | ||
|
||
* `MicroBatchWrite` is requested to [create a DataWriterFactory for batch write](MicroBatchWrite.md#createBatchWriterFactory) | ||
|
||
## <span id="createWriter"> Creating DataWriter | ||
|
||
```scala | ||
createWriter( | ||
partitionId: Int, | ||
taskId: Long): DataWriter[InternalRow] | ||
``` | ||
|
||
`createWriter` is part of the `DataWriterFactory` ([Spark SQL]({{ book.spark_sql }}/connector/DataWriterFactory#createWriter)) abstraction. | ||
|
||
--- | ||
|
||
`createWriter` requests the [StreamingDataWriterFactory](#streamingWriterFactory) for a [DataWriter](../StreamingDataWriterFactory.md#createWriter). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters