Package com.lancedb.lance.spark.write
Class LanceDataWriter
java.lang.Object
com.lancedb.lance.spark.write.LanceDataWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>
public class LanceDataWriter
extends Object
implements org.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLanceDataWriter(LanceArrowWriter arrowWriter, FutureTask<List<com.lancedb.lance.FragmentMetadata>> fragmentCreationTask, Thread fragmentCreationThread) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.write.DataWriter
currentMetricsValues
-
Constructor Details
-
LanceDataWriter
public LanceDataWriter(LanceArrowWriter arrowWriter, FutureTask<List<com.lancedb.lance.FragmentMetadata>> fragmentCreationTask, Thread fragmentCreationThread)
-
-
Method Details
-
write
- Specified by:
writein interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
commit
- Specified by:
commitin interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
abort
- Specified by:
abortin interfaceorg.apache.spark.sql.connector.write.DataWriter<org.apache.spark.sql.catalyst.InternalRow>- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-