package org.apache.spark.sql.sources.v2.writer;
public interface DataWriterFactory<T> extends Serializable {
DataWriter<T> createDataWriter(int partitionId, int attemptNumber);
}
DataWriterFactory
DataWriterFactory
is a contract…FIXME
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:
|