public class QdrantStreamingWriter extends Object implements org.apache.spark.sql.connector.write.streaming.StreamingWrite
| Constructor and Description |
|---|
QdrantStreamingWriter(QdrantOptions options,
org.apache.spark.sql.types.StructType schema)
Constructor for QdrantStreamingWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort(long epochId,
org.apache.spark.sql.connector.write.WriterCommitMessage[] messages)
Aborts the write operation for the given epochId and messages.
|
void |
commit(long epochId,
org.apache.spark.sql.connector.write.WriterCommitMessage[] messages)
Commits the write operation for the given epochId and messages.
|
org.apache.spark.sql.connector.write.streaming.StreamingDataWriterFactory |
createStreamingWriterFactory(org.apache.spark.sql.connector.write.PhysicalWriteInfo info)
Creates a StreamingDataWriterFactory for writing data to Qdrant.
|
public QdrantStreamingWriter(QdrantOptions options, org.apache.spark.sql.types.StructType schema)
options - The options for writing data to Qdrant.schema - The schema of the data to be written.public org.apache.spark.sql.connector.write.streaming.StreamingDataWriterFactory createStreamingWriterFactory(org.apache.spark.sql.connector.write.PhysicalWriteInfo info)
createStreamingWriterFactory in interface org.apache.spark.sql.connector.write.streaming.StreamingWriteinfo - The PhysicalWriteInfo object containing information about the write operation.public void commit(long epochId,
org.apache.spark.sql.connector.write.WriterCommitMessage[] messages)
commit in interface org.apache.spark.sql.connector.write.streaming.StreamingWriteepochId - The epochId of the write operation.messages - The WriterCommitMessage objects containing information about the write
operation.public void abort(long epochId,
org.apache.spark.sql.connector.write.WriterCommitMessage[] messages)
abort in interface org.apache.spark.sql.connector.write.streaming.StreamingWriteepochId - The epochId of the write operation.messages - The WriterCommitMessage objects containing information about the write
operation.Copyright © 2024. All rights reserved.