public class StarRocksDataWriter extends Object implements org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>, Serializable
| Constructor and Description |
|---|
StarRocksDataWriter(WriteStarRocksConfig config,
org.apache.spark.sql.types.StructType schema,
int partitionId,
long taskId,
long epochId) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
close() |
org.apache.spark.sql.connector.write.WriterCommitMessage |
commit() |
void |
open() |
void |
write(org.apache.spark.sql.catalyst.InternalRow internalRow) |
public StarRocksDataWriter(WriteStarRocksConfig config, org.apache.spark.sql.types.StructType schema, int partitionId, long taskId, long epochId)
public void open()
public void write(org.apache.spark.sql.catalyst.InternalRow internalRow)
throws IOException
write in interface org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>IOExceptionpublic org.apache.spark.sql.connector.write.WriterCommitMessage commit()
throws IOException
commit in interface org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>IOExceptionpublic void abort()
throws IOException
abort in interface org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2024. All rights reserved.