Class PslDataWriter (0.3.4)

public class PslDataWriter implements DataWriter<InternalRow>

Inheritance

java.lang.Object > PslDataWriter

Implements

org.apache.spark.sql.sources.v2.writer.DataWriter<org.apache.spark.sql.catalyst.InternalRow>

Constructors

PslDataWriter(long partitionId, long taskId, long epochId, StructType schema, PublisherFactory publisherFactory)

public PslDataWriter(long partitionId, long taskId, long epochId, StructType schema, PublisherFactory publisherFactory)
Parameters
NameDescription
partitionIdlong
taskIdlong
epochIdlong
schemaorg.apache.spark.sql.types.StructType
publisherFactoryPublisherFactory

Methods

abort()

public synchronized void abort()

commit()

public synchronized WriterCommitMessage commit()
Returns
TypeDescription
org.apache.spark.sql.sources.v2.writer.WriterCommitMessage
Exceptions
TypeDescription
IOException

write(InternalRow record)

public synchronized void write(InternalRow record)
Parameter
NameDescription
recordorg.apache.spark.sql.catalyst.InternalRow