Interface SupportsTruncate
- All Superinterfaces:
WriteBuilder
- All Known Subinterfaces:
SupportsOverwrite
,SupportsOverwriteV2
Write builder trait for tables that support truncation.
Truncation removes all data in a table and replaces it with data that is committed in the write.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptiontruncate()
Configures a write to replace all existing data with data committed in the write.Methods inherited from interface org.apache.spark.sql.connector.write.WriteBuilder
build, buildForBatch, buildForStreaming
-
Method Details
-
truncate
WriteBuilder truncate()Configures a write to replace all existing data with data committed in the write.- Returns:
- this write builder for method chaining
-