DataWriterFactory
DataWriterFactory is a contract…FIXME
|
1 2 3 4 5 6 7 8 9 |
package org.apache.spark.sql.sources.v2.writer; public interface DataWriterFactory<T> extends Serializable { DataWriter<T> createDataWriter(int partitionId, int attemptNumber); } |
|
Note
|
In other words, using the contract is as treading on thin ice. |
| Method | Description |
|---|---|
|
Gives the DataWriter for a partition ID and attempt number Used when:
|
spark技术分享