SupportsTruncate¶
SupportsTruncate
is an extension of the WriteBuilder abstraction for tables that support truncation.
Contract¶
Truncation¶
WriteBuilder truncate()
WriteBuilder that can replace all existing data with data committed in the write
Used when:
- OverwriteByExpressionExec and
OverwriteByExpressionExecV1
physical operators are executed StreamExecution
stream execution engine (Spark Structured Streaming) is requested tocreateStreamingWrite
Implementations¶
- ConsoleTable (Spark Structured Streaming)
- ForeachWriterTable (Spark Structured Streaming)
- KafkaTable
- MemorySink (Spark Structured Streaming)
- NoopWriteBuilder
- SupportsOverwrite