public class StreamingWriter
extends java.lang.Object
implements org.apache.spark.sql.sources.v2.writer.streaming.StreamWriter
Modifier and Type | Method and Description |
---|---|
void |
abort(long epochId,
org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
void |
abort(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
void |
commit(long epochId,
org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
void |
commit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
protected void |
commitOperation(SnapshotUpdate<?> operation,
int numFiles,
java.lang.String description) |
org.apache.spark.sql.sources.v2.writer.DataWriterFactory<org.apache.spark.sql.catalyst.InternalRow> |
createWriterFactory() |
protected java.lang.Iterable<DataFile> |
files(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages) |
protected Table |
table() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void commit(long epochId, org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
commit
in interface org.apache.spark.sql.sources.v2.writer.streaming.StreamWriter
public void abort(long epochId, org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
abort
in interface org.apache.spark.sql.sources.v2.writer.streaming.StreamWriter
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.DataSourceWriter
public void commit(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
commit
in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriter
protected void commitOperation(SnapshotUpdate<?> operation, int numFiles, java.lang.String description)
public void abort(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
abort
in interface org.apache.spark.sql.sources.v2.writer.DataSourceWriter
protected Table table()
protected java.lang.Iterable<DataFile> files(org.apache.spark.sql.sources.v2.writer.WriterCommitMessage[] messages)
public java.lang.String toString()
toString
in class java.lang.Object